Convert a SimpleFeatures object to a non-spatial dataframe

sf_as_tbl(sf_obj)

Arguments

sf_obj

A SimpleFeatures object

Value

The SimpleFeatures object with geometry set to NULL.

Examples

data("wastd_data")
sf_as_tbl(wastd_data$sites)
#> # A tibble: 218 × 4
#>    site_id site_name                   area_id area_name       
#>      <dbl> <chr>                         <dbl> <chr>           
#>  1     280 Croker Island                    NA NA              
#>  2     279 Melville Island                  NA NA              
#>  3     202 Ashmore Reef                     NA NA              
#>  4     177 Troughton Island                176 Troughton Island
#>  5     183 Scott Reef                      184 Scott Reef      
#>  6     185 Browse Island                   186 Browse Island   
#>  7     145 Cape Domett - Needles Beach      44 Cape Domett     
#>  8     223 Adele Island                     NA NA              
#>  9      51 Smokey Bay                      148 Smokey Bay Area 
#> 10      52 Langgi                          148 Smokey Bay Area 
#> # … with 208 more rows