| as.data.frame.county | R Documentation |
Calls get_county_data() using the county code stored in the object.
This is the data counterpart to county_meta(): it converts the
lightweight metadata object into the full voter-level data.
## S3 method for class 'county'
as.data.frame(x, ..., source = NULL)
x |
A |
... |
Ignored. |
source |
Character string or |
To avoid specifying source in every call, set options(data_dir) once
at the start of your session or in your .Rprofile:
options(data_dir = "~/my_data/") # local files # or leave unset to use the online OSF repository
A data.frame with one row per voter.
county, county_meta(), get_county_data()
lee <- as.data.frame(Lee)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.