Take county data, identify variables of interest, standardize borders to baseline
1 2 | xwalk_county(data, y0, yb, merge_key = c("state", "county"),
var_value = NULL, var_count = NULL)
|
data |
county level data (likely from ICPSR 2896) |
y0 |
initial year of data |
yb |
baseline year to transform data towards |
merge_key |
vector identifying the ICPSR state and county code if using ICPSR 2896, this is just state and county like so: c("state", "county") |
var_value |
variables that are values like average temperature or average wage as a vector like c("avgtemp", "avgwage") |
var_count |
variables that are counts like population or number of farms as a vector like c("totpop", "urb25") |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.