as.mfData {roahd} | R Documentation |
Converting object to mfData
class
Description
This S3 method provides a way to convert some objects to the class
mfData
, thus obtaining a multivariate functional dataset.
Usage
as.mfData(x, ...)
## S3 method for class 'list'
as.mfData(x, ...)
Arguments
x |
a list of univariate functional datasets, provided in form of
|
... |
additional parameters. |
Value
The function returns a mfData
object, obtained starting from
argument x
.
Examples
grid = seq( 0, 1, length.out = 100 )
fD_1 = fData( grid, sin( 2 * pi * grid ) )
fD_2 = fData( grid, cos( 2 * pi * grid ) )
plot( as.mfData( list( fD_1, fD_2 ) ) )
[Package roahd version 1.4.3 Index]