powered by
Retrieves USA statistical unit names.
getNamesUS(year = "2018", unit = c("region", "division","state", "county", "district", "district_county", "urban_area"), id = FALSE, all_levels = TRUE)
A character vector or a data frame with unit names and corresponding associated levels
year of the analysis
the type of statistical units
boolean value indicating whether the ids are returned instead of names
a logical value indicating if all levels are returned or only the unit names
getNamesIT, getNamesEU, getNamesWR, getNamesUK, getNamesDE
getNamesIT
getNamesEU
getNamesWR
getNamesUK
getNamesDE
getNamesUS() # \donttest{ getNamesUS(unit = "state") getNamesUS(unit = "state", all_levels = FALSE) getNamesUS(unit = "county") getNamesUS(unit = "county", all_levels = FALSE) # }
Run the code above in your browser using DataLab