as_FD.data.frame | R Documentation |
Convert data.frame to FDboost data format
## S3 method for class 'data.frame' as_FD(x, obj.formula, ...)
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 |
... |
additional arguments to be passed to or from methods. |
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.
a data.frame in 'irregular' FDboost format FD_irregular
.
FDboost(), FD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.