Description Usage Arguments Details Value See Also Examples
Impute by Constant Value
Replaces NA
s by a constant
1 2 3 4 5 6 7 8 9 10 11 |
.x |
vector; of values to have the |
.na |
scalar to use as replacement. |
These functions replace ALL NA
values in x
with an scalar
value specified by.na
.
na.constant
replaces missing values with a scalar constant. It is a wrapper
around na.replace()
but permits .na
to only be a scalar.
na.inf
and na.neginf
replace all missing values with Inf
and -Inf
repectively. '.
na.true
and na.false
replace missing values with TRUE
and FALSE
respectively.
na.zero
replaces missing values with 0
which gets coerced to the
class(x)
as needed.
A vector with the type and length of x
with all missing values replaces
by .na
.
na.replace()
the underlying function that performs the replacement.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.