Description Usage Arguments Value Author(s)
A helper function – in a numeric vector, substitute values equal to 'y' with user specified 'z'. Included at the user level because it's useful for setting up batch jobs.
1 | if.y.z(x, y = 0, z = 1)
|
x |
A numeric, character or boolean vector |
y |
The valued to be swapped out |
z |
The value which replaces swapped out values |
A numeric, character or boolean vector, equal to the input vector,
x
, except with occurences y
replaced with the value z
Grant Izmirlian <izmirlian at nih dot gov>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.