Annual: Construct basis vectors for Harmonic terms in a model

Description Usage Arguments Value Examples

Description

Convenience function for specifying harmonic terms in a model The two functions Annual and Hyear do the same job but are retained for compatibility purposes.

Usage

1
2
3
4
5
6
7
Annual(day, k = 4)

Seasonal(dates, k = 4)

Harm(theta, k = 4)

Hyear(x, k = 4)

Arguments

day, x

time variable, assumed to be in elapsed days from a fixed origin

k

the number of sine and cosine terms

dates

time variable, as a Date object or can be coerced to Date

theta

angle expressed in radians

Value

A matrix of harmonc terms with length(days) rows and 2*k columns

Examples

1
head(Annual(0:364))

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.