This function regularizes a Scalar Functional Data SFD on the time_seq input.
This function uses linear interpolation.
Usage
regularize_time_series_SFD(
df,
time_seq = 0:100,
id_col = "id",
time_col = "time"
)
Arguments
- df
dataframe with one or more different ids
- time_seq
New time sequence where we want to regularize
- id_col
col_name of df for the id
- time_col
col_name of df for the time
Value
a regularized dataframe