A function to format data for FPCA
Usage
fpcaFormat(dat, id_col, var_cols = NULL)
Arguments
- dat
A data frame of data
- id_col
Designates the column that contains the unique identifier for each subject
- var_cols
A vector of column names that contain the variables of interest
Value
A tibble of data in FPCA format