Skip to content

Commit

Permalink
Merge pull request #170 from seanchrismurphy/patch-1
Browse files Browse the repository at this point in the history
Update read_survey.R
  • Loading branch information
juliasilge authored May 22, 2020
2 parents fecbb88 + c07ccd9 commit 324edc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/read_survey.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ read_survey <- function(file_name,
n_max = 1
))

names(rawdata) <- gsub("^\\{'ImportId': '(.*)'\\}$", "\\1",
unlist(new_ids))
names(rawdata) <- jsonlite::fromJSON(
paste0('[', paste(as.character(unlist(new_ids)), collapse = ','), ']')
)$ImportId
}

# If Qualtrics adds an empty column at the end, remove it
Expand Down

0 comments on commit 324edc9

Please sign in to comment.