create_flagged_dataset: Takes raw GHCN-D data and adds an outlier flag.

Description Usage Arguments Details Value Examples

View source: R/create_flagged_dataset.R

Description

This takes a data set generated by get_weather_data (or any of the snowload2::get_x_data functions), and flags points which were found to be outliers during the national snow load project in 2020, or have a QFLAG problem.

Usage

1
create_flagged_dataset(data, date_max = base::as.Date("2020-8-1"))

Arguments

data

the data set which is to be flagged

date_max

Date object, observations after this date will be removed

Details

Since outliers were only flagged up to the date 2020-8-1, the default date_max is set to this. This way observations after this point wont be marked as non-outliers when they haven't been checked. It is advised to leave this date as it is.

0 means not an outlier, 1 means outlier

Value

data frame which has

Examples

1
2
# UT <- get_weather_data("UT")
# UT_flagged <- create_flagged_dataset(UT)

scoutiii/HTSoutliers documentation built on April 4, 2021, 4:47 p.m.