Change a Column Role to "pd.index"
update_role_pd_index.Rd
rpwf reserves "pd.index" as a special role for pandas index. This function
is a wrapper for recipes::update_role()
where the new role is a "pd.index"
Examples
r <- recipes::recipe(mpg ~ ., data = mtcars) |>
update_role_pd_index(cyl)
r
#> Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> pd.index 1
#> predictor 9