Table of Contents

R is a functional programming language used for statistical computing and graphics. Learn how to use R in our beginner's tutorial guide.

- Introduction
- What is R and setup
- Variables and Commands
- Functions
- Help
- Scripts
- Startup
- Datasets
- Vectors
- Introduction to Vectors
- Sequences and Repetitions in R
- Recycling and Vector Arithmetic
- Filtering Vectors

A beginner's guide to the R statistical programming language.

Learn how to use and install R and its IDE RStudio for your statistical analyses in our beginner's tutorial series.

Learn about basic commands and variables in R, including how to remove variables from your environment. Also we'll look into RStudio and the basics of how to operate each panel.

Learn how to define your own functions, which are crucial to simplifying your R analysis workflow. Also find out what formal parameters and actual arguments are, and how to declare default values as arguments in your function.

Need help or an example of how a command is used in R? No fear! R comes equipped with several functions that allows you to find help, straight from the console.

Learn how to load and run an R script directly from the command line, using the RScript command or R CMD BATCH. Also, learn the differences between the aforementioned two ways.

Learn how to create and edit the R configuration file, which enables you to select an editor and set your current working directory.

Learn how to save all your objects within your work session to an R dataset, either automatically or manually.

Learn about the core data structure in R, vectors.

Learn how to declare vectors, check their types, access vectors by index, and name each element within a vector.

Learn how to use the seq() and rep() functions in R to create vectors.

Learn how to perform vector arithmetic, and learn what it means to recycle a vector in R.

Learn how to filter vectors in R using the all(), any(), which(), and subset() functions.