Description Usage Arguments Value Examples
View source: R/find_Outliers.R
This function applies three different methods to detect outliers.
1 2 3 |
data |
|
prefilter |
|
method |
|
remove |
|
window |
|
width |
|
step |
|
hist |
|
plot |
|
plot.single |
|
... |
Currently unused. |
The data set with outliers removed is returned. Optionally, a plot is created
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Load example data
file <- system.file("extdata/raw.log", package = "roughness")
data <- import_Data(file)
# find outliers
data_cleaned <- find_Outliers(data = data,
prefilter = TRUE,
method = c("iqr", "sd", "mad"),
remove = "mad",
window = FALSE,
width = 20,
step = 10,
hist = TRUE,
plot = TRUE)
head(data_cleaned)
# find outliers with window technique
data_cleaned2 <- find_Outliers(data = data,
prefilter = TRUE,
method = "mad",
remove = "mad",
window = FALSE,
width = 30,
step = 15,
hist = TRUE,
plot = TRUE)
head(data_cleaned2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.