replaceValue: Simple 'ifelse'

Description Usage Arguments Value

View source: R/replaceVal.R

Description

replaceVal acts very similary to 'ifelse' but with a more compact syntax for checking a column against a single value.

Usage

1
replaceValue(check, replace, replace_if = NA)

Arguments

check

vector to check equality to 'replace_if'

replace

replacement for 'check'. Recycled if necessary

replace_if

currently only allows a length = 1 vector to compare to 'check'

Value

vector of same type as 'check'


West-End-Statistics/r-library-vakdr documentation built on Dec. 18, 2021, 7:16 p.m.