submonthly: submonthly'

Description Usage Arguments Details Value See Also Examples

Description

submonthly is used to create a list representing each measurement per half-month.

Usage

1
submonthly(tme, div = 2)

Arguments

tme

a POSIXlt object representing calendar dates and times.

div

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

Details

If div=2, value changes after the last 'tme' measurement in each half-month.

Value

a vector of numeric values alternating between 0 and 1.

See Also

the tmecreate() function can be used to create a POSIXlt object.

Examples

1
2
3
tme <- tmecreate(2010, 6)
sm <- submonthly(tme, div = 2)
sm2 <- submonthly(tme, div = 4)

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