Skip to contents

Is this a sf class object?

Is this a sfc class object?

Is this a sfg class object?

Is this a bbox class object?

Is this a sf, sfc, or bbox class object?

Is this a RasterLayer class object?

Is this a Spatial class (sp) object?

Usage

is_sf(x)

is_sfc(x)

is_sfg(x)

is_bbox(x)

is_sf_ext(x, ext = TRUE)

is_raster(x)

is_sp(x)

Arguments

x

An object to be tested with inherits()

ext

If TRUE, return TRUE is x is a sf, sfc, or bbox object. If FALSE, only check if x is an sf object. If ext is a character object, it is passed to the what parameter of inherits() with sf.

See also