Skip to contents

The required census tract identifier column name is used to merge in tract geographies from the cincy package.

Usage

codec_dpkg_as_sf(x)

Arguments

x

a CoDEC dpkg

Value

an sf object that is a codec dpkg with an added geometry column

Examples

get_codec_dpkg("drivetime-v0.2.2") |>
  codec_dpkg_as_sf()
#> Simple feature collection with 222 features and 3 fields
#> Geometry type: MULTIPOLYGON
#> Dimension:     XY
#> Bounding box:  xmin: 953086.5 ymin: 1838813 xmax: 1001233 ymax: 1869107
#> Projected CRS: NAD83(NSRS2007) / Conus Albers
#> # [☰] drivetime-v0.2.2
#> # title: "Average Drive Time to Cincinnati Children's"
#> # homepage: https://geomarker.io/codec
#> # ℹ Use `dpkg_meta() to get all metadata
#> # A tibble: 222 × 4
#>    census_tract_id_2010 drive_time_avg  year                            geometry
#>    <chr>                         <dbl> <dbl>                  <MULTIPOLYGON [m]>
#>  1 39061000200                    18    2024 (((980148.6 1846420, 980142.5 1846…
#>  2 39061000700                    13    2024 (((981404.2 1846236, 981428 184624…
#>  3 39061000900                    12.9  2024 (((981428 1846243, 981404.2 184623…
#>  4 39061001000                    12    2024 (((981579.6 1846936, 981619.3 1846…
#>  5 39061001100                    12    2024 (((982531.4 1846984, 982575.3 1847…
#>  6 39061001600                    12    2024 (((980840.6 1847296, 980830.9 1847…
#>  7 39061001700                    12    2024 (((981493.8 1847430, 981569.8 1847…
#>  8 39061001800                    12    2024 (((982562.8 1847640, 982585.4 1847…
#>  9 39061001900                    12    2024 (((983435 1846639, 983415.1 184659…
#> 10 39061002000                    12.4  2024 (((984476.1 1848241, 984230.9 1848…
#> # ℹ 212 more rows