as.mfData: Converting object to 'mfData' class

Description Usage Arguments Value Examples

View source: R/fData.R

Description

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

Usage

1
2
3
4
as.mfData(x, ...)

## S3 method for class '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

1
2
3
4
5
6
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 ) ) )

roahd documentation built on Nov. 4, 2021, 1:07 a.m.