as_FD.data.frame: Convert data.frame to FDboost data format

View source: R/FD-class.R

as_FD.data.frameR Documentation

Convert data.frame to FDboost data format

Description

Convert data.frame to FDboost data format

Usage

## S3 method for class 'data.frame'
as_FD(x, obj.formula, ...)

Arguments

x

a data.frame including the response values, functional response arguments, dimension indicator for multidimensional response functions and an id column indicating the curve id

obj.formula

a formula of the form value^dim ~ arg | id indicating the respective columns of x. Missing ^dim or |id are interpreted as only one dimension/id occuring in the data.

...

additional arguments to be passed to or from methods.

Details

A data.frame will basically directly passed to FDboost without much further transformation. In principle, only the id-column is replaced by a numeric vector ranging from 1 to length(unique(id)), and the dim-colum is converted to factor.

Value

a data.frame in 'irregular' FDboost format FD_irregular.

See Also

FDboost(), FD


Almond-S/manifoldboost documentation built on June 23, 2022, 11:06 a.m.