Skip to contents

Returns part of URL of folders (on Census Bureau site) with zip file(s) based on end year.

Usage

get.url.prefix(end.year = acsdefaultendyearhere_func())

Arguments

end.year

Optional end year for 5-year summary file, as character, but ignored if url.prefix is specified

Value

Returns character vector that is first part of URL such as # 1 "https://www2.census.gov/programs-surveys/acs/summary_file/2021/data/5_year_seq_by_state/2020/Tracts_Block_Groups_Only" https://www2.census.gov/programs-surveys/acs/summary_file/2021/sequence-based-SF/data/5_year_seq_by_state/Delaware/Tracts_Block_Groups_Only "ftp://ftp.census.gov/acs2012_5yr/summaryfile/2008-2012_ACSSF_By_State_By_Sequence_Table_Subset"

Examples

browseURL(get.url.prefix(2022))
#> Error in get.url.prefix(2022): could not find function "get.url.prefix"