Take a survey object and parse it into a tidy dataframe.
parse_survey.Rd
Take a survey object and parse it into a tidy dataframe.
Usage
parse_survey(
surv_obj,
oauth_token = get_token(),
col_names = "id",
col_fill = TRUE,
...
)
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()
.- col_names
Set column names either to names ("name") or IDs ("id", default). Depending on question types, column names will be formatted as one of the following where each `` element is either an ID or a name:
'{question heading}'
'{question heading} - Other'
'{question heading} - {matrix row}'
'{question heading} - {matrix row} - {matrix column}'
- col_fill
For the columns extracted from a multi-select question, how to fill in values. Choices are either TRUE or "name" denoting the name of each question choice. Default is TRUE.
- ...
Additional arguments to pass on to
get_responses
. See the documentation?get_responses
where these arguments are listed.