Loading, setting up

In this section, we start out by doing:

# install.packages("tidyverse")
# library(tidyverse)
library(qualtRics)
# install.packages("usethis")
usethis::use_git_ignore("*.csv") # this ignores any CSV files in your directory (so they aren't shared publicly)
## ✔ Setting active project to '/Users/joshuarosenberg/Documents/tetc-analysis'
d <- read_csv("Teacher Education Technology Competencies Survey_October 15, 2018_08.01.csv")
d <- getSurvey("SV_3JDqQlocnhQHEzj")
## 
  |                                                                       
  |                                                                 |   0%
  |                                                                       
  |=================================================================| 100%
## Warning in inferDataTypes(data, surveyID): The 'StartDate', 'EndDate' and 'RecordedDate' variables were converted without passing
## a specific timezone. If you like to set these timestamps to your own timezone, please
## visit https://www.qualtrics.com/support/survey-platform/getting-started/managing-your-account/
## (under 'User Settings'). See https://api.qualtrics.com/docs/dates-and-times for more
## information about how the Qualtrics API handles dates and times.
d
## # A tibble: 246 x 80
##    ResponseID ResponseSet IPAddress StartDate           EndDate            
##    <chr>      <chr>       <chr>     <dttm>              <dttm>             
##  1 R_233Qwdo… Default Re… 152.33.5… 2018-09-05 08:47:40 2018-09-05 08:55:59
##  2 R_2VOvjIS… Default Re… 152.33.6… 2018-09-05 08:44:44 2018-09-05 09:10:54
##  3 R_2TBNdkS… Default Re… 152.33.7… 2018-09-05 12:02:06 2018-09-05 12:13:14
##  4 R_2VvCGhu… Default Re… 134.139.… 2018-09-05 16:34:55 2018-09-05 16:44:11
##  5 R_3pbFgXT… Default Re… 152.33.1… 2018-09-05 19:23:23 2018-09-05 19:33:23
##  6 R_daFb6JK… Default Re… 49.199.2… 2018-09-05 19:22:07 2018-09-05 19:38:54
##  7 R_3qERzR1… Default Re… 120.151.… 2018-09-05 20:49:28 2018-09-05 20:57:39
##  8 R_2trihbX… Default Re… 1.128.10… 2018-09-05 21:09:47 2018-09-05 21:24:15
##  9 R_A7H2ykX… Default Re… 121.222.… 2018-09-05 21:59:25 2018-09-05 22:10:40
## 10 R_3pl6ItA… Default Re… 144.133.… 2018-09-05 22:01:19 2018-09-05 22:11:36
## # ... with 236 more rows, and 75 more variables: RecipientLastName <chr>,
## #   RecipientFirstName <chr>, RecipientEmail <chr>,
## #   ExternalDataReference <chr>, Finished <int>, Status <int>, Q1 <int>,
## #   Q2 <ord>, Q3_1 <chr>, Q3_7 <chr>, Q3_8 <chr>, Q3_8_TEXT <chr>,
## #   Q4 <ord>, Q5_1 <int>, Q5_2 <int>, Q6 <ord>, Q6_TEXT <chr>, Q7_1 <chr>,
## #   Q7_2 <chr>, Q7_3 <chr>, Q7_4 <chr>, Q7_7 <chr>, Q7_7_TEXT <chr>,
## #   Q8_1 <chr>, Q8_2 <chr>, Q8_3 <chr>, Q8_4 <chr>, Q8_5 <chr>,
## #   Q8_6 <chr>, Q8_7 <chr>, Q8_8 <chr>, Q8_9 <chr>, Q8_10 <chr>,
## #   Q8_11 <chr>, Q8_12 <chr>, Q8_12_TEXT <chr>, Q9_4_TEXT <chr>,
## #   Q9_5_TEXT <chr>, Q9_6_TEXT <chr>, Q9_7_TEXT <chr>, `Q10#1_1` <chr>,
## #   `Q10#1_2` <chr>, `Q10#1_4` <chr>, `Q10#1_5` <chr>, `Q10#1_14` <chr>,
## #   Q11_1 <chr>, Q11_2 <chr>, Q11_3 <chr>, Q11_4 <chr>, Q11_5 <chr>,
## #   Q11_6 <chr>, Q11_7 <chr>, Q11_8 <chr>, Q11_9 <chr>, Q11_10 <chr>,
## #   Q11_11 <chr>, Q11_12 <chr>, Q12 <chr>, Q13 <chr>, Q14 <chr>,
## #   Q15 <chr>, Q16 <chr>, Q17 <chr>, Q18_4 <chr>, Q18_5 <chr>,
## #   Q18_6 <chr>, Q18_7 <chr>, Q18_10 <chr>, Q18_12 <chr>, Q18_13 <chr>,
## #   Q18_14 <chr>, Q18_15 <chr>, LocationLatitude <dbl>,
## #   LocationLongitude <dbl>, LocationAccuracy <int>

We did it!

Yay.