https://github.com/cran/fda
Tip revision: b35963963ae64a4a374bde12feed8dd092f9082a authored by J. O. Ramsay on 16 December 2020, 18:40:02 UTC
version 5.1.9
version 5.1.9
Tip revision: b359639
fd2list.Rd
\name{fd2list}
\alias{fd2list}
\title{
Convert a univariate functional data object to a list
}
\description{
Convert a univariate functional data object to a list for input to
\code{\link{Lfd}}.
}
\usage{
fd2list(fdobj)
}
\arguments{
\item{fdobj}{
a univariate functional data object.
}
}
\value{
a list as required for the second argument of \code{\link{Lfd}}.
}
\seealso{
\code{\link{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
}
% docclass is function
\keyword{smooth}