Learn R Programming

fda (version 6.2.0)

fd2list: Convert a univariate functional data object to a list

Description

Convert a univariate functional data object to a list for input to Lfd.

Usage

fd2list(fdobj)

Value

a list as required for the second argument of Lfd.

Arguments

fdobj

a univariate functional data object.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

Lfd

Examples

Run this code
Lbasis  = create.constant.basis(c(0,365));  #  create a constant basis
Lcoef   = matrix(c(0,(2*pi/365)^2,0),1,3)   #  set up three coefficients
wfdobj  = fd(Lcoef,Lbasis)      # define an FD object for weight functions
wfdlist = fd2list(wfdobj)       # convert the FD object to a cell object
harmaccelLfd = Lfd(3, wfdlist)  #  define the operator object

Run the code above in your browser using DataLab