get_densities: Get population density

Description Usage Arguments Value

View source: R/01_densities.R

Description

get_densities wrapper function that allows user to subset data from various sources. If only county is specified (other parameters = ""), it provides national level data. Currently for US, if state(s) is specified, then it returns lowest geographical level (state or county) that it has within those specified state(s). If county is also specified (and the dataset contains counties), then only those counties within the state(s) are returned. If county is also specified (and the dataset contains counties), then only those counties within the state(s) are returned.

Usage

1
get_densities(country = "", state = "", county = "")

Arguments

country

Country of desired data.

state

State of desired data.

county

County of desired data.

reload

Flag (default is FALSE) of whether to redownload and process the data file.

Value

A data.frame with population density of desired country/state/county.


SC-COSMO/sccosmomcma documentation built on Dec. 18, 2021, 11:56 a.m.