Learn R Programming

GPFDA (version 1.1)

wrap: Wrap the input data into the certain format.

Description

Wrapping function to convert the data format.

Usage

wrap(functional, scale = NULL, testdata = NULL, list = c("traindata", "testdata"), 
  time = NULL, response = NULL)

Arguments

functional
The functional part of the data.
scale
The scale part of the data.
testdata
Test data.
list
Is the wrapping about the training data or testing data? Default to be the first element in the brackets.
time
The term gives time points.
response
The term gives response.

Value

  • dataA data table object after wrapping

Details

Can wrap the data frame and list into certain format of data.table. For example, see demo('gpfr').

See Also

wrap; data.table; fdapred; gpfr