R: Convert a univariate functional data object to s list

fd2list {fda} | R Documentation

## Convert a univariate functional data object to s list

### Description

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

### Usage

    fd2list(fdobj)

### Arguments

`fdobj` | a univariate functional data object.

### Value

a list as required for the second argument of `Lfd`.

### See Also

`Lfd`

### Examples

    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

[Package fda version 2.4.8 Index]