Description Usage Arguments Value Examples
Data is removed such that the inner fraction (specified by parameter keeperc
) is kept
1 2 | remOutliers(in.dt, in.colname, keeperc = 0.99, mode = c("both", "left",
"right"))
|
in.dt |
Input data.table |
in.colname |
String with the column name to process. The column has to be of type numeric. |
keeperc |
Percentage (fraction) of data to keep |
mode |
Specifies where to remove data. The default |
data table without outliers. All columns are preserved.
1 2 3 4 5 6 7 8 | require(data.table)
dt = data.table(x = rnorm(1000, 1, 0))
# keep 99% of inner data
remOutliers(dt, 'x')
# keep 90% of data; data will be removed from the left side of the histogram
remOutliers(dt, 'x', 0.9, 'left')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.