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 18 Apr. 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
03/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/16Downloads for switchcase02468101214161820222426TrendBars

Today's Hot Picks in Authors and Packages

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
ff  
Memory-Efficient Storage of Large Data on Disk and Fast Access Functions
The ff package provides data structures that are stored on disk but behave (almost) as if they were ...
Download / Learn more Package Citations See dependency  
CDNmoney  
Components of Canadian Monetary and Credit Aggregates
Components of Canadian Credit Aggregates and Monetary Aggregates with continuity adjustments. ...
Download / Learn more Package Citations See dependency  
shinyMobile  
Mobile Ready 'shiny' Apps with Standalone Capabilities
Develop outstanding 'shiny' apps for 'iOS', 'Android', desktop as well as beautiful 'shiny' gadgets. ...
Download / Learn more Package Citations See dependency  
SeqAlloc  
Sequential Allocation for Prospective Experiments
Potential randomization schemes are prospectively evaluated when units are assigned to treatment ar ...
Download / Learn more Package Citations See dependency  
chngpt  
Estimation and Hypothesis Testing for Threshold Regression
Threshold regression models are also called two-phase regression, broken-stick regression, split-poi ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,993

Author Associations

24,013

Publication Badges

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