Advanced-R-Solutions
Advanced-R-Solutions copied to clipboard
Set of solutions for the Advanced R programming book
Currently bs4_book "edit this page" and "view source" links only point to main branches called "master". Not "main". Unfortunately this seems not to be customizable. See also https://github.com/rstudio/bookdown/issues/1012.
Currently the chapter numbering is not customizable when using bs4_book. See https://github.com/rstudio/bookdown/issues/1024
The encoding issue in the PDF output (see e.g. S4 emoji exercises), are also in the whole R6 chapter. E.g. the colors (heart, spade, etc.) for `my_deck$draw(52)` are not correctly...
Hi @hadley @Tazinho @henningsway ! As I mentioned to Hadley, I was interested in working on chapter 25, to which he agreed I have uninstalled R completely, and then tried...
Try to replicate the performance comparison between `apply(x, 1, sum)` and `rowSums(x)`. It seems that the result I got indicates the running time gain is independent of the size of...
[Sec 2.4 Lists](https://advanced-r-solutions.rbind.io/vectors.html#lists) Q2 answer: > Note that [as.vector()](https://rdrr.io/r/base/vector.html) and [is.vector()](https://rdrr.io/r/base/vector.html) use different definitions of “vector!” ``` > is.vector(as.vector(mtcars)) > #> [1] FALSE ``` The above output is correct for...
Wondering if it's worth noting the update for R 4.4.0 here: https://github.com/Tazinho/Advanced-R-Solutions/blob/cfdb2b5a09d6163f3888089e8ad9a2fa61b37989/13_S3.Rmd#L421 > UseMethod creates a new function call with arguments matched as they came in to the generic. [Previously...