Description Usage Arguments Details Value
View source: R/outlier_detection.R
Impute detected outliers in a multidimensional data set
1 2 3 |
x |
a matrix, data frame or vector of data points (a vector will be understood as 1D data, equivalent to a 1-column matrix). Each row is a data point and each column is a dimension. NA values are allowed and will produce NAs in the output. |
flag |
a boolean or integer (0-or-1) vector flagging outliers, such as produced by the function |
fill |
method for imputing (or removing) outliers. If numeric or NA, it is the value that will replace the outliers. It the data is K-dimensional, |
level |
passed to the function |
nmax |
passed to the function |
side |
passed to the function |
crit |
passed to the function |
k |
passed to the function |
metric |
distance metric to be used in LOF (if |
q |
power in Minkowski metric, used if |
... |
passed to |
The output object will be a vector, a matrix or a data-frame, depending on what x
was. Row names, column names or (if x
was a named vector) names will be kept.
object like x
but with outliers imputed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.