s-fleck/lest: Vectorised Nested if-else Statements Similar to CASE WHEN in 'SQL'

Functions for vectorised conditional recoding of variables. case_when() enables you to vectorise multiple if and else statements (like 'CASE WHEN' in 'SQL'). if_else() is a stricter and more predictable version of ifelse() in 'base' that preserves attributes. These functions are forked from 'dplyr' with all package dependencies removed and behave identically to the originals.

Getting started

Package details

MaintainerStefan Fleck <stefan.b.fleck@gmail.com>
LicenseMIT + file LICENSE
Version1.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("s-fleck/lest")
s-fleck/lest documentation built on Feb. 15, 2024, 12:13 p.m.