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.

Total

2,074

Last month

274

Last week

66

Average per day

9

Daily downloads

Total downloads

Description file content

Type
Package
Package
lest
Title
Vectorised Nested if-else Statements Similar to CASE WHEN in 'SQL'
Version
1.1.0
Maintainer
Stefan Fleck
Description
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.
License
MIT + file LICENSE
Suggests
testthat
Encoding
UTF-8
LazyData
true
RoxygenNote
7.0.1.9000
NeedsCompilation
yes
Packaged
2019-11-29 07:23:52 UTC; fleck
Author
Stefan Fleck [aut, cre] (), Hadley Wickham [aut] (), Romain François [aut] (), Lionel Henry [aut], Kirill Müller [aut] ()
Repository
CRAN
Date/Publication
2019-11-29 07:30:02 UTC

install.packages('lest')

1.1.0

16 days ago

Stefan Fleck

MIT + file LICENSE

Suggests

testthat

Discussions