In chapter 10 we will actually reshape the AQ data from a wide format to a long format and then calculate total AQ scores from that newly created dataset.Remember there are solutions at the end of the chapter if you get stuck.
Read in the data and create three objects
pivot_longerto take data from a wide format to a long format
isolate one participant and look at their data
calculate AQ scores with
make a histogram of the scores using
Complete 10.2. Read in your data and create three objects:
Complete 10.3. Be sure to compare
responses to make sure you understand what
pivot_longer does. Complete 10.4 to isolate one participant and see a small portion of your new dataframe.
Awesome, you converted the data to a long format, now we need to combine it with data from the other csv files so we can calculate total AQ scores. Complete 10.5 and 10.6 to do this.
Complete 10.7 and 10.8 to calculate the AQ scores for a lone participant and then all participants.