D-Lab's 4 part, 8 hour introduction to R Fundamentals. Learn how to create variables and functions, manipulate data frames, make visualizations, use control flow structures, and more, using R in RStudio.
31
stars
9
forks
source link
Part 4 - one actual issue and some suggestions #57
In the “Summary Statistics Review” section of Part 4, the first portion says “For example: CLEAN UP.” It looks like there was supposed to be additional text with examples of what we covered in Part 3.
Under “Custom Functions” of Part 4, the “mean_lifeexp” function uses pull() and pipes through to mean(), which confused some students. I’d avoid using this and instead save lifeexp_mean using “mean(gap$lifeexp)” because we’ve already covered this syntax.
Consider specifying what to call the function in Challenge 3 instructions so everyone can work off the same code.
In the “Box Plots” section there is code to run ggplot and aes functions that don’t produce anything because we haven’t specified what plot we want to create (as expected), but I think this is confusing. Might want to just keep the full code under “geom” as is and break down data, aesthetics, and geom within the single chunk.
In the “Summary Statistics Review” section of Part 4, the first portion says “For example: CLEAN UP.” It looks like there was supposed to be additional text with examples of what we covered in Part 3.
Under “Custom Functions” of Part 4, the “mean_lifeexp” function uses pull() and pipes through to mean(), which confused some students. I’d avoid using this and instead save lifeexp_mean using “mean(gap$lifeexp)” because we’ve already covered this syntax.
Consider specifying what to call the function in Challenge 3 instructions so everyone can work off the same code.
In the “Box Plots” section there is code to run ggplot and aes functions that don’t produce anything because we haven’t specified what plot we want to create (as expected), but I think this is confusing. Might want to just keep the full code under “geom” as is and break down data, aesthetics, and geom within the single chunk.