Cheat Sheet for R and RStudio L. Jason Anastasopoulos April 29, 2013 1 Downloading and Installation. First download R for your OS: R. Next download RStudio for your OS: RStudio. 2 Uploading Data into R-Studio. R-Studio Makes uploading CSV files into R extremely simple. Just follow these instructions and you’ll be using R in no time. Find out about the wide array of functions R provides to help you with statistical analysis with R—from simple statistics to complex analyses.
No one starting point will serve all beginners, but here are 6 ways to begin learning R.
Install , RStudio, and R packages like the tidyverse. These three installation steps are often confusing to first-time users. For beginner-friendly installation instructions, we recommend the free online ModernDive chapter Getting Started with R and RStudio. You may also enjoy the Basic Basics lesson unit from R-Ladies Sydney, which provides an opinionated tour of RStudio for new users and a step-by-step guide to installing and using R packages.
Spend an hour with A Gentle Introduction to Tidy Statistics In R. If you are coming to R from a traditional point-and-click statistics package such as SPSS or SAS, RStudio’s Thomas Mock has created a free video webinar titled A Gentle Introduction to Tidy Statistics In R. This one-hour introduction covers how to get started quickly with the basics of research statistics in R, providing an emphasis on reading data into R, exploratory data analysis with the tidyverse, statistical testing with ANOVAs, and finally producing a publication-ready plot in ggplot2. Plus, you’ll find a host of other RStudio webinars and videos to explore via the topic menus on the left side of that page.
Read R for Data Science. While videos are great for some, others of us learn best by curling up with a good book. If that describes you, pick up a copy of R For Data Science by Wickham and Grolemund (2016) from your friendly local bookseller. R For Data Science is available in paper and electronic forms and has been translated into multiple languages including Spanish, so choose the version that’s easiest for you. R For Data Science is also available for free as a online book at https://r4ds.had.co.nz. If you don’t yet know enough about R to commit to R for Data Science, you may find Garrett Grolemund’s Hands On Programming with R(2014) a quicker way to get started. It’s also available in paper, electronic, and free online versions.
Start coding using RStudio.cloud Primers. One of the most effective ways to get started learning R is to start using it. RStudio.cloud Primers offer a cloud-based learning environment that will teach you the basics of R all from the comfort of your browser. RStudio.cloud doesn’t require you to install any software on your computer, making it easy to dip your toe into data science with R with a minimum of fuss. And best of all, rstudio.cloud accounts are free for personal use.
Publish your work with R Markdown. R is a terrific tool for telling stories with graphics and data, but sometimes you need words too. R Markdown weaves together narrative text and code to produce elegantly formatted reports, papers, books, slides and more. Garrett Grolemund will give you a personal R Markdown tour with his Get Started With R Markdown video, or you can choose your own path through the wonders of R Markdown at rmarkdown.rstudio.com. Bookmark R Markdown: The Definitive Guide(2018) as you work too; it provides a great overview of what is possible within the R Markdown family of packages.
Learn about some power tools for development. RStudio offers 6 videos called the RStudio Essentials Series that help you learn how to program and manage R projects using RStudio’s tools including the RStudio Integrated Development Environment (IDE). These videos will also help you learn good development practices that make collaboration within a team safe and easy.
Allaire, JJ, Yihui Xie, Jonathan McPherson, Javier Luraschi, Kevin Ushey, Aron Atkins, Hadley Wickham, Joe Cheng, Winston Chang, and Richard Iannone. 2020. Rmarkdown: Dynamic Documents for R. https://CRAN.R-project.org/package=rmarkdown.
Grolemund, Garrett. 2014. Hands-on Programming with R: Write Your Own Functions and Simulations. O’Reilly Media, Inc. https://rstudio-education.github.io/hopr/.
Wickham, Hadley. 2019. Tidyverse: Easily Install and Load the ’Tidyverse’. https://CRAN.R-project.org/package=tidyverse.
Wickham, Hadley, Winston Chang, Lionel Henry, Thomas Lin Pedersen, Kohske Takahashi, Claus Wilke, Kara Woo, Hiroaki Yutani, and Dewey Dunnington. 2020. Ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics.
Wickham, Hadley, and Garrett Grolemund. 2016. R for Data Science: Import, Tidy, Transform, Visualize, and Model Data. O’Reilly Media, Inc. https://r4ds.had.co.nz/.
Xie, Yihui, Joseph J Allaire, and Garrett Grolemund. 2018. R Markdown: The Definitive Guide. Chapman; Hall/CRC. https://bookdown.org/yihui/rmarkdown/.
If you spend time with R regularly then you should have the basics of data manipulation & plotting down within a couple of weeks. The more esoteric functions will take time to master. These are PDF cheat sheets that can be printed out. Keep them handy as you work with R.
help.start() - This first link doesn't actually take you to another site because it isn't a resource on the web, it's contained with R. To access it just type help.start() at the prompt and a collection of manuals will appear in your browser window. Pretty handy reference tool, eh?
R Reference Card - This is the most popular reference card. This same document is available from a number of sites and includes info on input & output, getting help, working with variables & arrays, plotting & more. You want this one.
R for Data Mining - This document was written by RDataMining.com. It includes info on classification, clustering, social network analysis, big data and more. This is very handy if you're interested in knowledge discovery & data mining.
R Studio Cheat Sheet Statistics Download
R Style Guide - This resource is more than a cheat sheet. Google's internal R user community put together this guide for clean R code that covers syntax & conventions that are unique to R. I include it here because I've refered to it quite a bit in my own work. Your code will be easy to read & maintain if you follow these guidelines.
Comments are closed.