Skip to content

Commit e2302e5

Browse files
author
Stefan Fleck
committed
resubmission
1 parent da1e4a6 commit e2302e5

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Maintainer: Stefan Fleck <[email protected]>
77
Description:
88
Functions for vectorised conditional recoding of variables. case_when()
99
enables you to vectorise multiple if and else statements (like 'CASE WHEN'
10-
in SQL). if_else() is a stricter and more predictable
11-
version of base::ifelse() that preserves attributes. These functions are
10+
in 'SQL'). if_else() is a stricter and more predictable
11+
version of ifelse() in 'base' that preserves attributes. These functions are
1212
forked from 'dplyr' with all package dependencies removed and behave
1313
identically to the originals.
1414
License: MIT + file LICENSE

R/case_when.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
#' TRUE ~ NA_real_
5656
#' )
5757
#' # This throws an error as NA is logical not numeric
58-
#' \dontrun{
58+
#' try({
5959
#' case_when(
6060
#' x %% 35 == 0 ~ 35,
6161
#' x %% 5 == 0 ~ 5,
6262
#' x %% 7 == 0 ~ 7,
6363
#' TRUE ~ NA
6464
#' )
65-
#' }
65+
#' })
6666
#' dat <- iris[1:5, ]
6767
#' dat$size <- case_when(
6868
#' dat$Sepal.Length < 5.0 ~ "small",

man/case_when.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/lest-package.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)