-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot-flagOutliers.Rd
33 lines (28 loc) · 1.07 KB
/
dot-flagOutliers.Rd
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
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-sampling.R
\name{.flagOutliers}
\alias{.flagOutliers}
\title{Flag outliers in vectorized data}
\usage{
.flagOutliers(df = NULL, parameter = NULL, width = 23, thresholdMin = 8)
}
\arguments{
\item{df}{Data frame.}
\item{parameter}{Data frame parameter to use for outlier detection.}
\item{width}{Width the rolling window.}
\item{thresholdMin}{Minimum threshold value used to detect outliers.}
}
\value{
A dataframe with an additional column identifying outliers.
}
\description{
This function uses Hampel filter outlier detection to flag
outliers in \code{parameter} column of the incoming dataframe. The
\code{width} and \code{thresholdMin} parameters as passed on to the
\code{\link[MazamaRollUtils]{findOutliers}} function.
An additional boolean column named \code{<parameter>_outlierFlag} is added
to the dataframe. This column will have \code{TRUE} whenever an outlier is
detected for the chosen \code{parameter}.
See \code{\link[MazamaRollUtils]{findOutliers}} for further details.
}
\keyword{internal}