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?
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
).
Exercise 3. Download and save the data set that we will call hypertrophy