Introduction to R(Studio) and projects

Lino AA Notarantonio (lino@tec.mx)
23 October 2022

Table of Contents

  1. Install R and RStudio
  2. Working with projects in RStudio

Install R and RStudio

  • Windows: right-click this tutorial online and select “Open Link in New Tab”.

  • Mac OSX: right-click this tutorial online and select “Open Link in New Tab”.

  • Download R for MacOS.

    • MacOS chip M1: click download R, select the package that contains arm64.
    • MacOS 10.11 (El Capitán, or higher): download R, version 3.6.3 or higher.
    • MacOS 10.9 (Mavericks, or higher): download R, version 3.3.3.
    • MacOS: to install RStudio in older versions of the operating system (10.13 or older) right-click here
  • RStudio is an IDE (Integrated Development Environment), that is, is a front to interact more conveniently with the program R.

  • For RStudio to work properly, R must be installed in your system.

Working with projects in RStudio

Right-click on tutorial online and select “Open Link in New Tab”.

The content of the tutorial is independent of the operating system.

Importing data

Right-click on this tutorial and select “Open Link in New Tab”.

The standard install of R(Studio) can also handle the most common commercial formats such as SPSS, Stata, SAS out of the box.

Importing Minitab files can also be done using the foreign library and using the read.mtp() function.

It is also possible to use a URL, if the dataset comes from a website.