sincos: Trigonometric variables

View source: R/detvar.R

sincosR Documentation

Trigonometric variables

Description

sincos creates an full set of trigonometric variables.

Usage

sincos(Y, n.ahead = 0, constant = FALSE)

Arguments

Y

an object of class ts used to determine the sample period and frequency.

n.ahead

number of additional observations to extend the sample period.

constant

logical indicator to include a column of ones.

Value

A matrix of trigonometric variables.

Examples


Y <- AirPassengers
P58 <- sincos(Y)


tfarima documentation built on May 20, 2022, 5:06 p.m.