Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fdata2fd

Converts fdata class object into fd class object


Description

Converts fdata class object into fd class object using Data2fd function.

Usage

fdata2fd(
  fdataobj,
  type.basis = NULL,
  nbasis = NULL,
  nderiv = 0,
  lambda = NULL,
  ...
)

Arguments

fdataobj

fdata class object.

type.basis

Type of basis. A function create."type.basis".basis must exists. By default, bspline basis is used.

nbasis

Number of basis which is used in create.basis function.

nderiv

Order of derivation which is used in deriv.fd function (optional).

lambda

Weight on the smoothing operator specified by nderiv.

...

Further arguments passed to or from other methods.

Value

Return an object of the fd class.

Author(s)

Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@usc.es

References

Febrero-Bande, M., Oviedo de la Fuente, M. (2012). Statistical Computing in Functional Data Analysis: The R Package fda.usc. Journal of Statistical Software, 51(4), 1-28. http://www.jstatsoft.org/v51/i04/

See Also

See Also as fdata and Data2fd

Examples

## Not run: 
data(phoneme)
mlearn<-phoneme$learn[1]
fdata2=fdata2fd(mlearn)
class(mlearn)
class(fdata2)
fdata3=fdata2fd(mlearn,type.basis="fourier",nbasis=7)
plot(mlearn)
lines(fdata2,col=2)
lines(fdata3,col=3)
fdata5=fdata2fd(mlearn,nderiv=1)

## End(Not run)

fda.usc

Functional Data Analysis and Utilities for Statistical Computing

v2.0.2
GPL-2
Authors
Manuel Febrero Bande [aut], Manuel Oviedo de la Fuente [aut, cre], Pedro Galeano [ctb], Alicia Nieto [ctb], Eduardo Garcia-Portugues [ctb]
Initial release
2020-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.