d1_method_from_vector: d1_method_from_vector

Description Usage Arguments Examples

View source: R/DAY1.R

Description

This function works in the same manner as Helper Function 1 but this time time the vector x has no consecutive 0's. This function takes vector x of raw observations with no consecutive 0's, make sure there is enough data to perform the D1 Method (if not, it will return NULL), and then calculate the D1 Method.

Usage

1

Arguments

x

A sequential change of SWE values. This is a vector object.

Examples

1
2
x <- c(1, 2, 0, 4, 5, 0, 3, 0, 2, 1, 3)
rdailychange:::d1_method_from_vector(x)

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