Other packages > Find by keyword >

switchcase  

A Simple and Flexible Switch-Case Construct for the 'R' Language
View on CRAN: Click here


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

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

Install by package version:
library("remotes")
install_version("switchcase", "0.1.1")



Attach the package and use:
library("switchcase")
Maintained by
Joachim Zuckarelli
[Scholar Profile | Author Map]
First Published: 2020-05-08
Latest Update: 2020-05-17
Description:
Provides a switch-case construct for 'R', as it is known from other programming languages. It allows to test multiple, similar conditions in an efficient, easy-to-read manner, so nested if-else constructs can be avoided. The switch-case construct is designed as an 'R' function that allows to return values depending on which condition is met and lets the programmer flexibly decide whether or not to leave the switch-case construct after a case block has been executed.
How to cite:
Joachim Zuckarelli (2020). switchcase: A Simple and Flexible Switch-Case Construct for the 'R' Language. R package version 0.1.1, https://cran.r-project.org/web/packages/switchcase. Accessed 29 Mar. 2025.
Previous versions and publish date:
0.1.0 (2020-05-08 20:50)
Other packages that cited switchcase R package
View switchcase citation profile
Other R packages that switchcase depends, imports, suggests or enhances
Complete documentation for switchcase
Functions, R codes and Examples using the switchcase R package
Some associated functions: alt . switchCase . 
Some associated R codes: Full switchcase package functions and examples
Downloads during the last 30 days
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/27Downloads for switchcase12345678TrendBars

Today's Hot Picks in Authors and Packages

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  
landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
Download / Learn more Package Citations See dependency  
gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

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