Introduction to Programming in R using RStudio

beginner

New to R? This lesson walks through the basic concepts of the R programming language.
Image credit: Art by Allison Horst

Description

This lesson is a gentle introduction to working with R using the RStudio interface. The goal is to become familiar with how the R language works as the starting point to learn more in-depth techniques to advance your science.

Prerequisites

None

Learning Goals

  • Become familiar with the RStudio interface
  • Learn the basics of R syntax (functions, packages, objects, vectors, assignment operator)
  • Understand the difference between a script and the console
  • Create and inspect vectors, identifying their class, content, and structure
  • Read and inspect data in R and understand the data structure
  • Apply basic mathematical operations with values in a data table

Duration

2 hours