incase: 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.

Package details

AuthorAlexander Rossell Hayes [aut, cre, cph] (<https://orcid.org/0000-0001-9412-0457>)
MaintainerAlexander Rossell Hayes <alexander@rossellhayes.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://incase.rossellhayes.com https://github.com/rossellhayes/incase
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("incase")

Try the incase package in your browser

Any scripts or data that you put into this service are public.

incase documentation built on Sept. 15, 2020, 5:07 p.m.