flagOutliers: Create column with Boolean based on a threshold

View source: R/library--data_prep--filter_tools--outlier_tools.R

flagOutliersR Documentation

Create column with Boolean based on a threshold

Description

Create column with Boolean based on a threshold

Usage

flagOutliers(DF, threshold, col, FlaggedOutlier = FlaggedOutlier)

Arguments

DF

Dataframe containing Column column ranked_quantile_data

threshold

a numeric used to flag if its an outlier

col

column being flagged based on threshold

FlaggedOutlier

name of flag column

Value

DF Dataframe with the extra column of if its flagged an outlier

Examples

data(Example_data, package = "Covid19Wastewater")
Example_data$site = "Madison"
df_data <- computeJumps(Example_data)
ranked_data <- rankJumps(df_data)
ranked_quantile_data  <- computeRankQuantiles(ranked_data)
flagOutliers(ranked_quantile_data, 9, MessureRank, FlaggedOutlier)

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.