Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions R/recode_values.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
#' element names have to be surrounded in backticks. For example,
#' ``recode=list(`0`=1)`` would recode all `1` into `0` in a numeric
#' vector. See also 'Examples' and 'Details'.
#' @param default Defines the default value for all values that have
#' no match in the recode-pairs. Note that, if `preserve_na=FALSE`, missing
#' values (`NA`) are also captured by the `default` argument, and thus will
#' also be recoded into the specified value. See 'Examples' and 'Details'.
#' @param default Defines the default value for all values that have no match in
#' the recode-pairs. If `NULL`, original values will be preserved when there
#' is no match. Note that, if `preserve_na=FALSE`, missing values (`NA`) are
#' also captured by the `default` argument, and thus will also be recoded into
#' the specified value. See 'Examples' and 'Details'.
#' @param preserve_na Logical, if `TRUE`, `NA` (missing values) are preserved.
#' This overrides any other arguments, including `default`. Hence, if
#' `preserve_na=TRUE`, `default` will no longer convert `NA` into the specified
Expand Down
9 changes: 5 additions & 4 deletions man/recode_values.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading