The 2020 ACS 5-year data was released on 3/17/2022.
totalcensus/data_raw/acs/
and rename it as ACS_5yr_Seq_Table_Number_Lookup_2020.txt
. ACS_2020_SF_5YR_Appendices.xlsx
. The Census Bureau changed the format from xls
to xlsx
in 2019. In case having trouble reading the file using readxl::read_excel, delete the second sheet.Try to finish all sections in one R session. If have to restart a R session, rebuild the package to make use of the new dataset.
ACS 5 year ===
in data_raw/acs/create_acs_file_table_lookup.R
, add a line of code lookup_acs5year_2020 <- make_acs_lookup(5, 2020)
and and run the line of code. A .RData
file will be added into totalcensus/data/
. After this step, the new data will be usable. You can rebuild the package and use the data. generate_acs5_tablecontents_()
function in R/search_census_and_acs.R
and rebuild the package.totalcensus/R/data_acs.R
, add documentation for the new dataset lookup_acs5year_2020
following the format in the file.totalcensus/data_raw/acs/create_acs_table_dictionary.R
find the block # acs5 ===
, change the latest_year
to 2020 and run the code of this block.dict_acs5_table
in totalcensus/R/data.acs.R
by adding one line \item{acs5_2019}{whether the table is available in 2020}
. totalcensus/data_raw/acs/create_acs_geocomponent_dictionary.R
find the block # acs5year geocomponent ======
and add a line S2020 <- generate_geocomponent("acs5", 2020)
. Run this line (will take time to download ACS data) and compare S2020
to S2019
. As they are the same, no further action is needed for this dataset.totalcensus/data_raw/acs/create_acs_summary_level_dictionary.R
do the same thing as above. The result is the same so no further action needed.totalcensus/data_raw/acs/create_acs_geoheader_dictionary.R
. However, first check if the 2020 geoheaders are the same as the 2019 ones. The 2019 geoheaders can be found in the technical documentation (table 2.4 here). Do nothing as they are the same since 2011.DESCRIPTION
file:quiet_gobal_variables_in_cran_check.R
test_data_consistency_over_years.R
to make sure 2020 data is consistent with other yearstest_new_data_on_Rhode_Island.R
to make sure no error.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.