This class provides an introduction to R in a Carpentries pedagogical style with a focus on active learning and hands-on experience. We will focus on teaching R with a data analytic focus using the Tidyverse, a set of interconnected R tools intended to make R easier to use for data analysis. This is an introduction to R designed for participants with no programming experience. We start with some basic information about R syntax, the RStudio interface, and move through how to import CSV files, the structure of data frames, how to calculate summary statistics from a data frame, and a brief introduction to plotting.
Setup and Configuration
R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.
Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE. Note that if you have separate user and admin accounts, you should run the installers as administrator (right-click on .exe file and select "Run as administrator" instead of double-clicking). Otherwise problems may occur later, for example when installing R packages.
Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.
You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run
sudo apt-get install r-baseand for Fedora run
sudo dnf install R). Also, please install the RStudio IDE.