CRAN/E | incase

incase

Pipe-Friendly Vector Replacement with Case Statements

Installation

About

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.

pkg.rossellhayes.com/incase/
github.com/rossellhayes/incase
Bug report File report

Key Metrics

Version 0.3.2
Published 2023-08-21 249 days ago
Needs compilation? no
License MIT
License File
CRAN checks incase results

Downloads

Yesterday 9 0%
Last 7 days 54 -18%
Last 30 days 273 -6%
Last 90 days 860 -18%
Last 365 days 3.532 +22%

Maintainer

Maintainer

Alexander Rossell Hayes

alexander@rossellhayes.com

Authors

Alexander Rossell Hayes

aut / cre / cph

Patrice Kiener

ctb

(Contributed example for fn_case())

Material

README
NEWS
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

incase archive

Imports

backports
cli
magrittr
plu
rlang

Suggests

dplyr
testthat ≥ 3.0.0
tibble