From 821973e9440f4130f8190c51c00bf861093932ee Mon Sep 17 00:00:00 2001 From: MatthiasLiew <92225474+MatthiasLiew@users.noreply.github.com> Date: Wed, 15 Feb 2023 20:49:11 +0800 Subject: [PATCH] Minor Typo Fixes in Section 8.2.1 (#1287) Changed meal_type to meal_plan to maintain consistency with the variable name in the data/code. --- data-import.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-import.qmd b/data-import.qmd index cdf3df2..ec31aa0 100644 --- a/data-import.qmd +++ b/data-import.qmd @@ -104,7 +104,7 @@ students |> janitor::clean_names() ``` Another common task after reading in data is to consider variable types. -For example, `meal_type` is a categorical variable with a known set of possible values, which in R should be represented as a factor: +For example, `meal_plan` is a categorical variable with a known set of possible values, which in R should be represented as a factor: ```{r} students |> @@ -114,7 +114,7 @@ students |> ) ``` -Note that the values in the `meal_type` variable have stayed the same, but the type of variable denoted underneath the variable name has changed from character (``) to factor (``). +Note that the values in the `meal_plan` variable have stayed the same, but the type of variable denoted underneath the variable name has changed from character (``) to factor (``). You'll learn more about factors in @sec-factors. Before you analyze these data, you'll probably want to fix the `age` column.