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]
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. Accessed 05 Apr. 2025.
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
Complete documentation for matchr
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
03/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/3003/3104/0104/0204/03Downloads for matchr02468101214TrendBars

Today's Hot Picks in Authors and Packages

whitestrap  
White Test and Bootstrapped White Test for Heteroskedasticity
Formal implementation of White test of heteroskedasticity and a bootstrapped version of it, develope ...
Download / Learn more Package Citations See dependency  
deepdive  
Deep Learning for General Purpose
Aims to provide simple intuitive functions to create quick prototypes of artificial neural network o ...
Download / Learn more Package Citations See dependency  
gllvm  
Generalized Linear Latent Variable Models
Analysis of multivariate data using generalized linear latent variable models (gllvm). Estimation i ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
leapp  
Latent Effect Adjustment After Primary Projection
These functions take a gene expression value matrix, a primary covariate vector, an additional know ...
Download / Learn more Package Citations See dependency  
IGST  
Informative Gene Selection Tool
Mining informative genes with certain biological meanings are important for clinical diagnosis of di ...
Download / Learn more Package Citations See dependency  

23,990

R Packages

207,311

Dependencies

64,809

Author Associations

23,991

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA