Learn R Programming

tsModel (version 0.6-1)

harmonic: Create a sine/cosine basis

Description

Create a matrix of sine and cosine basis vectors

Usage

harmonic(x, nfreq, period, intercept = FALSE)

Arguments

x

a numeric vector

nfreq

number of sine/cosine pairs to include

period

the period

intercept

should basis matrix include a column of 1s?