Other packages > Find by keyword >

matchr  

Pattern Matching and Enumerated Types in R
View on CRAN: Click here


Download and install matchr package within the R console
Install from CRAN:
install.packages("matchr")

Install from Github:
library("remotes")
install_github("cran/matchr")

Install by package version:
library("remotes")
install_version("matchr", "0.1.0")



Attach the package and use:
library("matchr")
Maintained by
Christopher Mann
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2021-09-09
Latest Update: 2021-09-09
Description:
Inspired by pattern matching and enum types in Rust and many functional programming languages, this package offers an updated version of the 'switch' function called 'Match' that accepts atomic values, functions, expressions, and enum variants. Conditions and return expressions are separated by '->' and multiple conditions can be associated with the same return expression using '|'. 'Match' also includes support for 'fallthrough'. The package also replicates the Result and Option enums from Rust.
How to cite:
Christopher Mann (2021). matchr: Pattern Matching and Enumerated Types in R. R package version 0.1.0, https://cran.r-project.org/web/packages/matchr
Previous versions and publish date:
No previous versions
Other packages that cited matchr R package
View matchr citation profile
Other R packages that matchr depends, imports, suggests or enhances
Functions, R codes and Examples using the matchr R package
Some associated functions: Enum . Err . Match . Matchply . None . Ok . Option . Result . Some . Try . bang . enum_type . fallthrough . grapes-.-grapes . grapes-fn-grapes . into_option . into_result . is.enum . is.enum_type . is.err . is.none . is.ok . is.some . is.variant . match_cond . unwrap . variant . 
Some associated R codes: check.R . enum.R . fallthrough.R . fun.R . match.R . result_option.R . unwrap.R .  Full matchr package functions and examples
Downloads during the last 30 days
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

rdbnomics  
Download DBnomics Data
R access to hundreds of millions data series from DBnomics API (). ...
Download / Learn more Package Citations See dependency  
critpath  
Setting the Critical Path in Project Management
Solving the problem of project management using CPM (Critical Path Method), PERT (Program Evaluation ...
Download / Learn more Package Citations See dependency  
steepness  
Testing Steepness of Dominance Hierarchies
The steepness package computes steepness as a property of dominance hierarchies. Steepness is define ...
Download / Learn more Package Citations See dependency  
ftaproxim  
Fault Tree Analysis Based on Proxel Simulation
Calculation and plotting of instantaneous unavailabilities of basic events along with the top event ...
Download / Learn more Package Citations See dependency  
mistral  
Methods in Structural Reliability
Various reliability analysis methods for rare event inference (computing failure probability and qua ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  

22,114

R Packages

188,080

Dependencies

55,244

Author Associations

22,115

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns