surveys {rATTAINS} | R Documentation |
Download State Survey Results
Description
Downloads data about state statistical (probability) survey results.
Usage
surveys(
organization_id = NULL,
survey_year = NULL,
tidy = TRUE,
.unnest = TRUE,
...
)
Arguments
organization_id |
(character) Filters the list to only those “belonging to” one of the specified organizations. Multiple values may be specified. required |
survey_year |
(character) Filters the list to the year the survey was performed. optional. |
tidy |
(logical) |
.unnest |
(logical) |
... |
list of curl options passed to |
Details
Arguments that allow multiple values should be entered as a comma
separated string with no spaces (organization_id = "DOEE,21AWIC"
).
Value
If tidy = FALSE
the raw JSON string is
returned, else the JSON data is parsed and returned as a list of tibbles.
Note
See domain_values to search values that can be queried.
Examples
## Not run:
## return surveys by organization
surveys(organization_id="SDDENR")
## return as a JSON string instead of a list of tibbles
surveys(organization_id="SDDENR", tidy = FALSE)
## End(Not run)