STATISTICS AND ANALYSES

4.4

Read data with R

Read data

In this step we will cover basics of importing in your data in R. If you need more informations, we recommend you the textbook Yarr: The Pirates Guide to R by Nathaniel Phillips which is a good resource for for learning R.

First, you need to open RStudio. Type your R-code into the R-script in the top-left window (if there is no such window, use the menu File > New File > R Script). Hit Ctrl + enter to run your code. In the following video we explain to you how to read data into R. You can take hold of our example data in the ‘downloads’ section below.

Lizenz

University of Basel

Downloads