R/edible_utils.R

Defines functions check_sf

check_sf <- function(x){
  #check if x is a sf object
  if (all(class(x) != "sf")) rlang::abort("x must be an `sf` object")
}

Try the ediblecity package in your browser

Any scripts or data that you put into this service are public.

ediblecity documentation built on July 26, 2023, 5:50 p.m.