What is the class or spatial attributes of this feature?
Usage
is_sf(x, ext = FALSE, null.ok = FALSE)
is_sfg(x, null.ok = FALSE)
is_sfc(x, null.ok = FALSE)
is_bbox(x, null.ok = FALSE)
is_sf_list(x, named = FALSE, ext = FALSE, null.ok = FALSE)
is_raster(x, null.ok = FALSE)
is_sp(x, null.ok = FALSE)
is_same_crs(x, y)
is_sf_or_what(x = NULL, return = NULL, us = FALSE, null.ok = TRUE)Arguments
- x
An
sf,sfc, orbboxobject.- ext
If
TRUE, check if x is asf,sfc, orbboxclass object or not; defaults toFALSE. (used by is_sf)- null.ok
If
TRUEand x isNULL, returnTRUE; defaults toFALSE.- named
If
TRUE, check if sf list is named; defaultsFALSE.- y
An sf object or a character or numeric object supported by sf::st_crs that can be compared to x. (used by is_same_crs)
- return
type of object to return; "list" or
NULL(default).- us
If
TRUE, check if x is a U.S. state or county name; defaults toFALSE.
Details
is_sf: is x a
sfclass object?is_sfc: is x is a
sfcclass object?is_bbox: is x is a
bboxclass object?is_sf_list: is x is a list of
sfclass objects (with or without names)?is_raster: is x a
Rasterclass object?is_sp: is x a
Spatialclass object of any type?is_same_crs: do x and y have the same coordinate reference system?