cumsumseq: cumsumseq #'@description 'cumsumseq' is used to create a...

Description Usage Arguments Value Examples

Description

cumsumseq #'@description cumsumseq is used to create a vector of values indicating growing season conditions for the specified time period.

Usage

1
cumsumseq(gs, ehour, div)

Arguments

gs

a vector of binary values indicating growing season (1) or non-growing season (0).

ehour

a vector of evapotranspiration values.

div

numeric object specifying the value by which to divide total days of each month.

Value

a vector of numeric values alternating between 0 and 1.

Examples

1
2
3
4
gs <- c(0,0,1,1,1,1,0,0,1,1,0)
ehour <- c(80, 81, 82, 83, 84, 85, 84, 83, 82, 81, 80)
div = 2
cs <- cumsumseq(gs, ehour, div = 2)

ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.