Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Download State Survey Results

Source:R/survey.R
surveys.Rd

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 “belongingto” one of the specified organizations. Multiple values may be specified.required

survey_year

(character) Filters the list to the year the survey wasperformed. optional.

tidy

(logical)TRUE (default) the function returns a tidiedtibble.FALSE the function returns the raw JSON string.

.unnest

(logical)TRUE (default) the function attempts to unnestdata to longest format possible. This defaults toTRUE for backwardscompatibility but it is suggested to useFALSE.

...

list of curl options passed tocrul::HttpClient()

Value

Iftidy = FALSE the raw JSON string isreturned, else the JSON data is parsed and returned as a list of tibbles.

Details

Arguments that allow multiple values should be entered as a commaseparated string with no spaces (organization_id = "DOEE,21AWIC").

Note

Seedomain_values to search values that can be queried.

Examples

if(FALSE){# \dontrun{## return surveys by organizationsurveys(organization_id="SDDENR")## return as a JSON string instead of a list of tibblessurveys(organization_id="SDDENR", tidy=FALSE)}# }

[8]ページ先頭

©2009-2025 Movatter.jp