Imputation by Cummutative Functions
Impute using replacement values calculated from a univariate, cummuative function.
na.median imputes with the median value of
x. The median is only valid
for numeric or logical values.
1 2 3 4 5 6 7 8 9 10 11 12 13
vector in which
additional arguments passed to lower-level summary functions.
This collection of functions calculates a replacement value using an
unvariate function where the order of values in
x do not matter,
na.min replace missing values (
NA) with the maximum or
minimum of non-missing values
base::max(..., na.rm=TRUE) and
... has no affect.
NA values with the mean of
mean(x, na.rm=TRUE, ... ) is used. If mean cannot be calculated (e.g. x
isn't numeric) then
x is returned with a warning.
na.quantile imputes with a quantile. The quantile is specified by a
probs argument that is passed to
probs can be
a scalar value in which all values are replaced by that quantile or a vector
length(.x) values which replaces the missing values of x with the
probs. The ability to provide a vector may be deprecated in the future.
na.mode replaces all
NA with the most frequently occuring value. In
the event of ties, the value encounter first in
.x is used.
na.most_freq is an alias for
A vector of
length(x) in which missing values (NA) have
been replaced the result of a function call:
na.replace() - used internally by these functions
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.