This S3 method provides a way to convert some objects to the class mfData, thus obtaining a multivariate functional dataset.

as.mfData(x, ...)

# S3 method for list
as.mfData(x, ...)

Arguments

x

a list of univariate functional datasets, provided in form of fData objects.

...

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 ) ) )