Closed reneherrera-cocohhs closed 2 years ago
Thank you for your question and sorry for the late response!
Not all variables are available for all block groups or geographies so you may have to find an alternative variable or pull the data at the tract level. Other options for deriving the percent of single-parent households include the B23008 or B05009 tables, but there may be others available. Please see the note here: https://github.com/azh2/Social-Vulnerability-R#percent-of-children-living-in-single-parent-households
A list of variables is attached here, you can also access these by calling tidycensus::load_variables() or going to https://api.census.gov/data/2019/acs/acs5/variables.html
Thanks for the explanation.
When running the script I get this error:
Error: Your API call has errors. The API message returned is error: error: unknown variable 'B09008_001E'.