Remove use of mu in exercises (#748)

Two exercises use $\mu$ to mean the mean parameter of a normal distribution. However, nowhere in the book is it defined as such. For clarity replace $\mu$ with "mean".
This commit is contained in:
Jeffrey Arnold 2020-01-15 10:41:35 -08:00 committed by Hadley Wickham
parent 5082dd8bfd
commit 5f85b4c592
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ That's all there is to the for loop! Now is a good time to practice creating som
1. Compute the mean of every column in `mtcars`.
1. Determine the type of each column in `nycflights13::flights`.
1. Compute the number of unique values in each column of `iris`.
1. Generate 10 random normals for each of $\mu = -10$, $0$, $10$, and $100$.
1. Generate 10 random normals from distributions with means of -10, 0, 10, and 100.
Think about the output, sequence, and body __before__ you start writing
the loop.
@ -623,7 +623,7 @@ I focus on purrr functions here because they have more consistent names and argu
1. Compute the mean of every column in `mtcars`.
1. Determine the type of each column in `nycflights13::flights`.
1. Compute the number of unique values in each column of `iris`.
1. Generate 10 random normals for each of $\mu = -10$, $0$, $10$, and $100$.
1. Generate 10 random normals from distributions with means of -10, 0, 10, and 100.
1. How can you create a single vector that for each column in a data frame
indicates whether or not it's a factor?