Skip to content

Instantly share code, notes, and snippets.

@derekpowell
Last active October 19, 2021 20:31
Show Gist options
  • Save derekpowell/84cb2cc6e332671467853799fb0a4dda to your computer and use it in GitHub Desktop.
Save derekpowell/84cb2cc6e332671467853799fb0a4dda to your computer and use it in GitHub Desktop.
read qualtrics csv
read_qualtrics_csv <- function(fname) {
headers <- as.matrix(read.csv(fname, skip = 0, header = F, nrows = 1, as.is = T))
df <- read_csv(fname, skip = 3, col_names = headers)
df <- df %>%
filter(DistributionChannel=="anonymous")
return(df)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment