News for hackers. Stuff that matters.
Re:Learn R Through Examples (2020) by qntty on Saturday June 05, 2021 @09:06AM (#27404640)
If you already know another dynamic language and want to understand R, I would recommend skipping all the intros to R based around data analysis and start with Advanced R by Hadley Wickham. It will explain all the weirdness you'll encounter right up front before it confuses you. Then you can read the data analysis tutorials and focus on the content rather than the R weirdness.
Re:Learn R Through Examples (2020) by claytonjy on Saturday June 05, 2021 @10:25AM (#27405308)
It's also available online under a creative commons license: https://adv-r.hadley.nz/
Re:Learn R Through Examples (2020) by CornCobs on Saturday June 05, 2021 @01:15PM (#27406822)
I agree that Advanced R is a fantastic resource; however I do not think reading it is a good way to learn R. Advanced R explains the whys not the whats, and someone coming into R, who hasn't encountered any of the stuff Wickham gives intuitions for will likely find it an inexplicable truck of concepts.

Instead I would propose using R in some capacity, encountering it's weird quirks (why sometimes evaluating an expression prints something to console and sometimes it doesn't? How is dplyr using my column names as variables? Why do I get warnings when using & instead of &&?) And then turning to Advanced R as a source of sanity

Another source I would recommend is in fact the R language definition. It's very approachable and you quickly realize that R is pretty simple at the core, buried under piles of cruft

Re:Learn R Through Examples (2020) by wodenokoto on Saturday June 05, 2021 @09:38AM (#27404904)
I was quite surprised how easy that book was to read and understand. I’d expected “advanced” any language to be much more difficult.
Re:Learn R Through Examples (2020) by beforeolives on Saturday June 05, 2021 @09:43AM (#27404939)
The title is kind of misleading - the book is more of a list of exceptions, edge cases, unexpected behaviour and other gotchas.
Re:Learn R Through Examples (2020) by carljv on Saturday June 05, 2021 @06:38PM (#27408992)
That is not an accurate description of the book.