test equality between the geometry type and a class or set of classes
st_is(x, type)
x | object of class |
---|---|
type | character; class, or set of classes, to test against |
#> [1] TRUE#> [1] TRUE FALSEst_is(sfc, "POLYGON")#> [1] FALSE FALSEst_is(sfc, "LINESTRING")#> [1] FALSE TRUE#> [1] FALSE TRUE#> [1] TRUE TRUE