Skip to content

Commit

Permalink
Shorter line
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed May 22, 2020
1 parent 55da914 commit c07ccd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/read_survey.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ read_survey <- function(file_name,
n_max = 1
))

names(rawdata) <- jsonlite::fromJSON(paste0('[', paste(as.character(unlist(new_ids)), collapse = ','), ']'))$ImportId
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 c07ccd9

Please sign in to comment.