Import Data to GNU R

This guide describes how to import collected data into GNU R, if you have downloaded the data in GNU R format as a CSV file as well as a R script (R file) Downloading Data: GNU R.

Note: If the data and the script were downloaded at different times, it may be that the files are incompatible (e.g. because the list of variables used may have changed).

Note: When downloading the survey data, choose the GNU R file format instead of CSV. This ensures that the formatting in the file will be compatible with the import script.

The following steps describe the process when using the RGui user interface for R. In principle, the process is virtually the same if you are using R from the console, or another GUI such as RStudio.

Open and start the script in R:

The survey data should be be located in a data frame that you specified when downloading the script (default is “data”). You can check the variables using the R command str(data).