create.fourier.basis(rangeval=c(0, 1), nbasis=3,
period=width, dropind=NULL,
quadvals=NULL, values=NULL)c(0,1)quadvals.fourier.basisfd,
create.bspline.basis,
create.constant.basis,
create.exponential.basis,
create.monomial.basis,
create.polygonal.basis,
create.polynomial.basis,
create.power.basis# set up the Fourier basis for the monthly temperature data,
# using 9 basis functions with period 12 months.
monthbasis <- create.fourier.basis(c(0,12), 9, 12.0)
# plot the basis
plot(monthbasis)Run the code above in your browser using DataLab