We conclude this introductory chapter on Basic R concepts and commands with some pointers to related resources.
1.9.1 Help on R
Most brains have better things to do than remembering all R commands and arguments. Instead, more experienced users of R are typically very good at looking up relevant information. To do this effectively and efficiently, knowing how and where to look is important. Here are some links to helpful resources:
To see the documentation of any R command named
?abc(in the Console or Editor panels of RStudio) to show R’s in-built help on the command with this name. For instance, evaluating
?sumprovides a precise definition and some examples of the function
sum(introduced above). Although some parts of the documentation may be difficult or confusing at first, it’s typically helpful to examine the definition, run the provided examples, and try to understand what they do and show.
A more extensive and invaluable source of help are the command documentations and vignettes that come with packages (and are accessible via the Help or Packages panels of RStudio).
Two contributions to RStudio cheatsheets provide visual summaries of Base R (by Mhairi McNeill) and Advanced R (by Arianne Colton and Sean Chen) concepts and commands.
- RStudio cheatsheet on Base R and Advanced R:
1.9.2 Learning R
There is no shortage of introductory books and scripts on R, but it is helpful to look for one that fits your interests and level of expertise.
YaRrr! The Pirate’s Guide to R (Phillips, 2018) is an introduction that approaches R in a funny and entertaining fashion. (See Rpository.com/learnR/ for a course with corresponding exercises and solutions.)
Advanced R (2nd edition) (Wickham, 2019a) is an valuable source for R users who want to deepen their programming skills and understanding of the language. The materials of the current chapter are covered in much more detail there:
Other helpful links that do not fit into the above categories include:
R-bloggers collects blog posts on R.
Quick-R (by Robert Kabacoff) is a popular website on R programming.
R-exercises provides categorized sets of exercises to help people developing their R programming skills.
[01_basics.Rmd updated on 2021-06-15 15:18:54 by hn.]