Skip to content

Commit 058357f

Browse files
minor polish
1 parent 97eada9 commit 058357f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/classification1.Rmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,14 +1347,17 @@ impute_missing_recipe
13471347
hidden_print_cli(impute_missing_recipe)
13481348
```
13491349

1350-
Applying the recipe to the `missing_cancer` data frame fills in the missing entries with the mean values of their corresponding variables.
1350+
We can now include this recipe in a `workflow`. To visualize what mean imputation does,
1351+
let's just apply the recipe directly to the `missing_cancer` data frame using the `bake` function.
1352+
The imputation step fills in the missing entries with the mean values of their corresponding variables.
13511353

13521354
```{r 05-impute-bake}
13531355
imputed_cancer <- bake(impute_missing_recipe, missing_cancer)
13541356
imputed_cancer
13551357
```
13561358

1357-
Many other options for missing data imputation can be found in [the `recipes` documentation](https://recipes.tidymodels.org/reference/index.html).
1359+
Many other options for missing data imputation can
1360+
be found in [the `recipes` documentation](https://recipes.tidymodels.org/reference/index.html).
13581361
However you decide to handle missing data in your data analysis, it is always crucial
13591362
to think critically about the setting, how the data were collected, and the question you are answering.
13601363

0 commit comments

Comments
 (0)