Learn R Programming

geogenr (version 1.0.0)

get_available_years_in_the_web: Get available years in the web

Description

For the name of a geodatabase, returns a vector with the years for which data is available on the web.

Usage

get_available_years_in_the_web(ua, geodatabase)

# S3 method for uscb_acs_5ye get_available_years_in_the_web(ua, geodatabase)

Arguments

ua

A uscb_acs_5ye object.

geodatabase

A string.

Value

A vector of integers.

See Also

Other data collection functions: download_geodatabases(), get_available_years_downloaded(), get_legal_and_administrative_areas(), get_statistical_areas(), uscb_acs_5ye()

Examples

Run this code
# NOT RUN {
library(tidyr)

folder <- "../geodimension/data/us/"
ua <- uscb_acs_5ye(folder = folder)
sa <- ua %>% get_statistical_areas()

# sa[6]
# [1] "New England City and Town Area Division"
# }
# NOT RUN {
y <- ua %>% get_available_years_in_the_web(geodatabase = sa[6])
# }

Run the code above in your browser using DataLab