Other packages > Find by keyword >

incase  

Pipe-Friendly Vector Replacement with Case Statements
View on CRAN: Click here


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

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

Install by package version:
library("remotes")
install_version("incase", "0.3.2")



Attach the package and use:
library("incase")
Maintained by
Alexander Rossell Hayes
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2020-09-15
Latest Update: 2023-08-21
Description:
Offers a pipe-friendly alternative to the 'dplyr' functions case_when() and if_else(), as well as a number of user-friendly simplifications for common use cases. These functions accept a vector as an optional first argument, allowing conditional statements to be built using the 'magrittr' dot operator. The functions also coerce all outputs to the same type, meaning you no longer have to worry about using specific typed variants of NA or explicitly declaring integer outputs, and evaluate outputs somewhat lazily, so you don't waste time on long operations that won't be used.
How to cite:
Alexander Rossell Hayes (2020). incase: Pipe-Friendly Vector Replacement with Case Statements. R package version 0.3.2, https://cran.r-project.org/web/packages/incase. Accessed 18 Feb. 2025.
Previous versions and publish date:
0.1.0 (2020-09-15 12:00), 0.2.0 (2020-12-17 06:20), 0.2.1 (2021-01-14 22:50), 0.3.0 (2021-04-03 21:00), 0.3.1 (2021-06-06 06:10)
Other packages that cited incase R package
View incase citation profile
Other R packages that incase depends, imports, suggests or enhances
Complete documentation for incase
Functions, R codes and Examples using the incase R package
Some associated functions: fn_case . grep_case . if_case . in_case . in_case_fct . in_case_list . incase-package . pipe . switch_case . 
Some associated R codes: fn_case.R . grep_case.R . if_case.R . in_case.R . in_case_fct.R . in_case_list.R . incase-package.R . onLoad.R . replace.R . staticimports.R . switch_case.R . utils-pipe.R . utils.R . validate_case_length.R .  Full incase 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

RobustBayesianCopas  
Robust Bayesian Copas Selection Model
Fits the robust Bayesian Copas (RBC) selection model of Bai et al. (2020) for cor ...
Download / Learn more Package Citations See dependency  
MOSS  
Multi-Omic Integration via Sparse Singular Value Decomposition
High dimensionality, noise and heterogeneity among samples and features challenge the omic integrat ...
Download / Learn more Package Citations See dependency  
clustMixType  
k-Prototypes Clustering for Mixed Variable-Type Data
Functions to perform k-prototypes partitioning clustering for mixed variable-type data according to ...
Download / Learn more Package Citations See dependency  
OptGS  
Near-Optimal Group-Sequential Designs for Continuous Outcomes
Optimal group-sequential designs minimise some function of the expected and maximum sample size whil ...
Download / Learn more Package Citations See dependency  
ppmf  
Read Census Privacy Protected Microdata Files
Implements data processing described in to align modern differentially ...
Download / Learn more Package Citations See dependency  
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  

23,712

R Packages

205,795

Dependencies

64,332

Author Associations

23,631

Publication Badges

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