上传者: 41128488
|
上传时间: 2021-12-06 20:51:52
|
文件大小: 7.49MB
|
文件类型: -
Advanced R(2nd Ed).pdf:
Welcome to the second edition of Advanced R. I had three main goals for this
edition:
• Improve coverage of important concepts that I fully understood only after
the publication of the first edition.
• Reduce coverage of topics time has shown to be less useful, or that I think
are really exciting but turn out not to be that practical.
• Generally make the material easier to understand with better text, clearer
code, and many more diagrams.
If you’re familiar with the first edition, this preface describes the major changes
so that you can focus your reading on the new areas. If you’re reading a printed
version of this book you’ll notice one big change very quickly: Advanced R is
now in colour! This has considerably improved the syntax highlighting of code
chunks, and made it much easier to create helpful diagrams. I have taken advantage
of this and included over 100 new diagrams throughout the book.
Another big change in this version is the use of new packages, particularly
rlang (http://rlang.r-lib.org), which provides a clean interface to low-level
data structures and operations. The first edition used base R functions almost
exclusively, which created some pedagogical challenges because many
functions evolved independently over multiple years, making it hard to see
the big underlying ideas hidden amongst the incidental variations in function
names and arguments. I continue to show base equivalents in sidebars, footnotes,
and where needed, in individual sections, but if you want to see the
purest base R expression of the ideas in this book, I recommend reading the
first edition, which you can find online at http://adv-r.had.co.nz.