From db00e3d43ec1ddc46eb88f318ed7b811066236b2 Mon Sep 17 00:00:00 2001 From: Kyle Walker Date: Wed, 25 Mar 2020 06:11:07 -0500 Subject: [PATCH] add class = 'sf' for CBSA geometry --- DESCRIPTION | 2 +- R/helpers.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index dd594f8..5d54df3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -6,7 +6,7 @@ Authors@R: c( person(given = "Kyle", family = "Walker", email="kyle.walker@tcu.edu", role=c("aut", "cre")), person(given = "Kris", family = "Eberwein", email = "eberwein@knights.ucf.edu", role = "ctb"), person(given = "Matt", family = "Herman", email = "mfherman@gmail.com", role = "ctb")) -Date: 2020-03-09 +Date: 2020-03-25 URL: https://github.com/walkerke/tidycensus BugReports: https://github.com/walkerke/tidycensus/issues Description: An integrated R interface to the decennial US Census and American Community Survey APIs and diff --git a/R/helpers.R b/R/helpers.R index aa33193..149b851 100644 --- a/R/helpers.R +++ b/R/helpers.R @@ -188,7 +188,7 @@ use_tigris <- function(geography, year, cb = TRUE, resolution = "500k", } else if (geography == "metropolitan statistical area/micropolitan statistical area") { - cbsa <- core_based_statistical_areas(cb = cb, year = year, ...) + cbsa <- core_based_statistical_areas(cb = cb, year = year, class = "sf", ...) return(cbsa)