r4ds-exercise-solutions icon indicating copy to clipboard operation
r4ds-exercise-solutions copied to clipboard

Exercise solutions to "R for Data Science"

Results 47 r4ds-exercise-solutions issues
Sort by recently updated
recently updated
newest added

In the exercise 5.4.1.3 in https://r4ds.had.co.nz/transform.html, the question text is: What does the any_of() function do? Why might it be helpful in conjunction with this vector? However, in the Exercise...

https://jrnold.github.io/r4ds-exercise-solutions/vectors.html#exercise-20.3.4 I was testing this function (see code below) and there is a problem with the "nearest, round half to odd" case_when part: ``` case_when( # smaller integer is odd...

[https://jrnold.github.io/r4ds-exercise-solutions/tidy-data.html#exercise-12.3.3](url) I believe there is a problem with the solution of this exercise, because the solution generates untidy data. Please correct me, if I am wrong. In the solution for...

The given code: ggplot(data = diamonds) + geom_pointrange( mapping = aes(x = cut, y = depth), stat = "summary", fun.min = min, fun.max = max, fun = median ) produces:...

https://jrnold.github.io/r4ds-exercise-solutions/strings.html#exercise-14.3.3.3 For this code in the fourth exercise: `str_view(stringr::words, "q[^u]", match = TRUE)` there is this result: ``` by dry fly mrs try why ``` There should be none.

This is all well and good: "Since str_c() does not separate strings with spaces by default it is closer in behavior to paste0()." ``` str_c("foo", "bar") #> [1] "foobar" ```...

**Brief summary:** Just an update, since the datamodelr package is no longer maintained, here are the same two exercises, but with {dm} syntax. **Link to page, and reference the exercise...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

"In this case study, I set _na.rm = TRUE_......" while, the Exercise is "In this case study I set _values_drop_na = TRUE_......" in R for Data Science

None of the "foo_foo" functions in chapter 18 work. Starting with foo_foo