You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The information column of the tidy method for prepped step_impute_mean(), step_impute_median(), and step_impute_mode() has the less informative name model which aligns with tidy results from step_impute_mode(). I think these could be better represented with value as is done in step_impute_lower().
library(recipes)
data("penguins", package="modeldata")
impute_rec<- recipe( ~., data=penguins) %>%
step_impute_lower(body_mass_g) %>%
step_impute_mean(body_mass_g) %>%
step_impute_median(body_mass_g) %>%
step_impute_mode(island) %>%
prep()
tidy(impute_rec, number=1)
#> # A tibble: 1 × 3#> terms value id #> <chr> <dbl> <chr> #> 1 body_mass_g 2700 impute_lower_9PeoD
tidy(impute_rec, number=2)
#> # A tibble: 1 × 3#> terms model id #> <chr> <dbl> <chr> #> 1 body_mass_g 4201. impute_mean_rmJCk
tidy(impute_rec, number=3)
#> # A tibble: 1 × 3#> terms model id #> <chr> <dbl> <chr> #> 1 body_mass_g 4050 impute_median_MLNJ4
tidy(impute_rec, number=4)
#> # A tibble: 1 × 3#> terms model id #> <chr> <chr> <chr> #> 1 island Biscoe impute_mode_jJuiD
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.
The
information
column of the tidy method for preppedstep_impute_mean()
,step_impute_median()
, andstep_impute_mode()
has the less informative namemodel
which aligns with tidy results fromstep_impute_mode()
. I think these could be better represented withvalue
as is done instep_impute_lower()
.The text was updated successfully, but these errors were encountered: