Learn R Programming

geogenr (version 1.0.0)

download_geodatabases: Download geodatabases

Description

For the name of a geodatabase and the given years, downloads from the web the corresponding geodatabase data files. Returns a vector with the years for which data is now available on the folder.

Usage

download_geodatabases(ua, geodatabase, years, folder = NULL)

# S3 method for uscb_acs_5ye download_geodatabases(ua, geodatabase, years, folder = NULL)

Arguments

ua

A uscb_acs_5ye object.

geodatabase

A string.

years

A vector of integers.

folder

A string.

Value

A vector of integers.

Details

If the folder is not indicated, it is considered that of the class.

See Also

Other data collection functions: get_available_years_downloaded(), get_available_years_in_the_web(), 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])
y_res <- ua %>% download_geodatabases(geodatabase = sa[6], years = y)

# }

Run the code above in your browser using DataLab