Skip to content

Commit f8b8c18

Browse files
committed
Fix a few setup chunks
1 parent f819b3e commit f8b8c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tutorials/statistical_models_ws/statistical_models_ws.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The first two columns are continuous variables representing the fruit fly's thor
134134

135135
The next step is to create two-level categorical groups from the numerical variables. We will also subset the data set to equal group sizes (by randomly selecting twenty observations from each group) If you are unfamiliar with the functions below, see our "Introduction to the R tidyverse" tutorial. Use the code box below to create the modified data frame and examine its first few rows:
136136

137-
```{r fly-2-groups, exercise = TRUE}
137+
```{r fly-2-groups, exercise = TRUE, exercise.setup = "setup-fly"}
138138
fly_2_groups <- df_fly %>%
139139
# Change "activity" to a 2-level variable
140140
mutate(activity = ifelse(activity %in% c("isolated", "one", "many"),
@@ -190,7 +190,7 @@ Now, we should visualize the data to understand its basic properties, find patte
190190

191191
Modify the code box below to explore the effect of the explanatory variable, `longevity` on the response variable, `activity`:
192192

193-
```{r fly-2-eda, exercise = TRUE, excercise.setup = "setup-eda"}
193+
```{r fly-2-eda, exercise = TRUE, excercise.setup = "setup-groups"}
194194
# create a box plot for exploratory data analysis
195195
<variable_name> %>%
196196
ggplot(aes(x = <explanatory_column>, y = <response_column>)) +

0 commit comments

Comments
 (0)