Take a survey object and parses it into a tidy data.frame.

parse_survey(
  surv_obj,
  oauth_token = get_token(),
  ...,
  fix_duplicates = c("error", "drop", "keep")
)

Arguments

surv_obj

a survey, the result of a call to fetch_survey_obj.

oauth_token

Your OAuth 2.0 token. By default, retrieved from get_token().

...

additional arguments to pass on to get_responses. See the documentation ?get_responses where these arguments are listed.

fix_duplicates

character if 'error', the default detection of duplicate data will result in an error being raised, otherwise allow the function to return. If 'keep' duplicate results will be retained, if 'drop' duplicates will be removed from the results.

Value

a data.frame (technically a tibble) with clean responses, one line per respondent.