Description Usage Arguments Details References Examples
Substitutes values when NA
is detected.
1 | ifna(x, y)
|
x |
An possibly containing |
y |
An object of equal length or a single value to be used in substitution |
The objective of this function is to provide an ability to substitute values
for NA. However, it is important to note that R is unique in the fact
that it has an NA
data type to represent missingness instead of relying
on values being pre-coded (e.g. 0, -1111, et cetera). Thus, the simplicity
of this function comes with the disclaimer of:
"An NA is the presence of an absence. Don't forget that some missing values are the absence of a presence" Hadley Wickham on Twitter
https://support.office.com/en-us/article/IFNA-function-6626c961-a569-42fc-a49d-79b4951fd461
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.