Pipe-Friendly Vector Replacement with Case Statements

Offers a pipe-friendly alternative to the 'dplyr' functions case_when() and if_else(). 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 possible outputs to the same type, meaning you no longer have to worry about using specific typed variants of NA or explicitly declaring integer outputs.


News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("incase")

0.1.0 by Alexander Rossell Hayes, 16 days ago


https://incase.rossellhayes.com, https://github.com/rossellhayes/incase


Report a bug at https://github.com/rossellhayes/incase/issues


Browse source code at https://github.com/cran/incase


Authors: Alexander Rossell Hayes [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports magrittr, plu, rlang

Suggests cli, covr, crayon, dplyr, testthat


See at CRAN