Go to basic R

Go to summarising data

Go to making figures

Importing data

Exercise 1. Data import in R is straight forward. We can import tabular files like .csv and .xlsx or specialized files from other statistical softwares (e.g. STATA-, SAS- and SPSS files).

Using read_excel(), how would you import the file cyclingStudy.xlsx into your R session?

Solution Ex. 1


Exercise 3. Notice that when looking at the cycling data set, the tibble (data frame) says that many variables containing numbers are character variables. Why do you think this is the case here?

Try to change the import to make sure that the values are numeric. Read the help file and think about how you can change it (?read_excel).


Solution Ex. 2


Exercise 3. Download and save the data set that we will call hypertrophy


Solution Ex. 3