Is it a WKT (Well-Known Text) geometry?
Value
Logical vector; TRUE for a WKT geometry literal such as
POINT (30 10) or POLYGON ((...)), optionally with a Z/M/ZM
dimensionality tag. Matches the standard OGC geometry types.
See also
Other geometry detectors:
is_geojson(),
is_wkb()
Examples
is_wkt_geometry(c("POINT (30 10)", "LINESTRING (0 0, 1 1)", "banana", NA))
#> [1] TRUE TRUE FALSE NA