adv-r
adv-r copied to clipboard
Advanced R: a book
https://github.com/hadley/adv-r/blob/f6c437a8baff551ffff6b602c38f1210c615ad17/Quotation.Rmd#L578-L585 This isn't entirely true. ``` r lobstr::ast(`+`(1, `+`(2,3))) #> o-`+` #> +-1 #> \-o-`+` #> +-2 #> \-3 ``` Created on 2020-06-03 by the [reprex package](https://reprex.tidyverse.org) (v0.3.0)
Just before section 6.4, the v.2 of Advanced R has following paragraphs: `Each of the **three options** has its own strengths and weaknesses: Nesting, **f(g(x))**, is concise, and well suited...
The link in the first edition at http://adv-r.had.co.nz/, which is supposed to point to the second edition of the book, points back to the first edition. I believe it's supposed...
**In the quiz**: traditionally, I think to categorical variables like factors. I have supposed you asked how to change factors’ labels using named character vectors (and subsetting). Something like ```...
In *3.4 S3 atomic vectors*, `difftimes` are described as one of the four important S3 vectors along with `factor`, `Date`, and `POSIXct`. In the image below the description only `factor`,...
Hi, Reading the book, I thought that subsetting with `[` was preserving attributes as well. It is not the case for vectors and lists ```r a [1] "list" "otherclass" class(a[1])...
What do you think about producing a non-square matrix from the `outer` call? That could be implicitly shows how `outer` works, and if you subset it to obtain at least...
Just a quick note that the link to the new style guide (on this page: http://adv-r.had.co.nz/Style.html) is incorrect - it links to the advanced R index (https://adv-r.hadley.nz/index.html) rather than to...
Great book Hadley, I'm really enjoying it, but I think there's an issue with exercise 2 from 2.3.6 and from this [stack exchange question](https://stackoverflow.com/questions/55713549/) I don't think I'm alone. In...
In section 3.2.1 the first note (16) points to this chapter to explore pairlists when referred to attributes. What about explain that case too, and the reason why they are...