R Basics

Swirl is a great and easy way to get you started with R. Install and open it by clicking the green arrow on the right.

Install Swirl Package:

install.packages("swirl")
library("swirl")
swirl()

Once you enter your username, it prompts you to choose a course to install. Choose 1 for “R Programming” to learn the basics. Then, enter 1 again and it will take you to a menu of courses you can choose from.

More advanced topics in R

You can learn more advanced topics by installing other course

## Intermediate
##    Regression Models: The basics of regression modeling in R
##    Getting and Cleaning Data: dplyr, tidyr, lubridate, oh my!
install_course("Regression Models")
install_course("Getting and Cleaning Data")

## Statistical Inference: This intermediate to advanced level course closely follows the Statistical Inference course of the Johns Hopkins Data Science Specialization on Coursera. It introduces the student to basic concepts of statistical inference including probability, hypothesis testing, confidence intervals and p-values. It concludes with an initiation to topics of particular relevance to big data, issues of multiple testing and resampling.
install_course("Statistical Inference")

##  Advanced R Programming
install_course("Advanced R Programming")

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The source code is licensed under MIT.

Suggest changes

If you find any mistakes (including typos) or want to suggest changes, please feel free to edit the source file of this page on Github and create a pull request.

Citation

For attribution, please cite this work as

Laura Vairus, others (2020). R Basics. BIOS 25328 Cancer Genomics Class Notes. /post/2020/07/05/r-basics/

BibTeX citation

@misc{
  title = "R Basics",
  author = "Laura Vairus, others",
  year = "2020",
  journal = "BIOS 25328 Cancer Genomics Class Notes",
  note = "/post/2020/07/05/r-basics/"
}