Provides reliable conversion of "crwIS"
and "crwPredict"
objects
into simple features objects supported in the "sf"
package. Both
"sf"
objects with "POINT" geometry and "sfc_LINESTRING"
objects
are created. Coersion of "crwPredict"
objects to "sfc_LINESTRING"
has an option "group"
argument when the "crwPredict"
object
includes predictions from multiple deployments. The grouping column will be
used and a tibble of multiple "sf_LINESTRING"
objects will be returned
crw_as_sf(crw_object, ftype, locType, group)# S3 method for crwIS
crw_as_sf(crw_object, ftype, locType = c("p", "o"),
group = NULL, ...)
# S3 method for crwPredict
crw_as_sf(crw_object, ftype, locType = c("p", "o"),
group = NULL, ...)
an object of class "crwIS"
or "crwPredict"
character of either "POINT" or "LINESTRING" specifying the feature type
character vector of location points to include ("p","o")
(optional) character specifying the column to group by for mulitple LINESTRING features
Additional arguments that are ignored
crwIS
: coerce crwIS object to sf (POINT or
LINESTRING geometry)
crwPredict
: coerce crwPredict object to sf (POINT or
LINESTRING geometry)