# default lag works on a single feature Code prepped_rec <- recipe(~., data = df) %>% step_lag(x, lag = 0.5) %>% prep(df) Condition Error in `step_lag()`: Caused by error in `bake()`: ! step_lag requires 'lag' argument to be integer valued. # something prints Code print(rec) Output Recipe Inputs: role #variables predictor 2 Operations: Lagging t --- Code prep(rec) Output Recipe Inputs: role #variables predictor 2 Training data contained 10 data points and no missing data. Operations: Lagging t [trained] # empty printing Code rec Output Recipe Inputs: role #variables outcome 1 predictor 10 Operations: Lagging <none> --- Code rec Output Recipe Inputs: role #variables outcome 1 predictor 10 Training data contained 32 data points and no missing data. Operations: Lagging <none> [trained]
Generated by dwww version 1.15 on Wed Jun 26 03:35:46 CEST 2024.