extract_observations: Extraction of Daily Change Observations

Description Usage Arguments Value Examples

View source: R/extract_observations.R

Description

This function allows the user to extract sequential daily changes from Snow Water Equivalent (SWE) observations. Day-1 observations are sequential daily changes in SWE. Day-2 observations assume that the shedding phenomenon occurs after two days. Hence, Day-2 observations are a sum of two consecutive days of positive sequential changes. Day-3, Day-4 and Day-5 observations are a sum of three, four and five consecutive sequential daily changes respectively. In addition, they allow for at most one middle sequential change to be a negative value as long as the sum of the other sequential daily changes are greater than the negative change.

Usage

1
extract_observations(df, day = 1, col_name = "SWE")

Arguments

df

data frame of SWE and other measurement location metadata.

day

Daily change method. This is an integer parameter. Default is 1 for Day-1 method.

col_name

Character string of the column name containing the snow observations.

Value

A data table of measurement location's metadata and specified daily sequential observations.

Examples

1
2
3

Kinekenneth48/rdailychange documentation built on Dec. 18, 2021, 3:34 a.m.