https://github.com/cran/fda
Revision ca5e2b4994971ec127b6a5ed2a08ce34abb2655c authored by J. O. Ramsay on 28 September 2021, 03:50:08 UTC, committed by cran-robot on 28 September 2021, 03:50:08 UTC
1 parent b359639
Raw File
Tip revision: ca5e2b4994971ec127b6a5ed2a08ce34abb2655c authored by J. O. Ramsay on 28 September 2021, 03:50:08 UTC
version 5.4.0
Tip revision: ca5e2b4
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}
back to top