as_sf | R Documentation |
Both functions will pass a NULL value without returning an error. If a POINT or MULTIPOINT object is passed to as_bbox a 0.00000001 meter buffer is applied.
as_sf(x, crs = NULL, sf_col = "geometry", ...) as_bbox(x, crs = NULL, ...) as_sfc(x, crs = NULL, ...) as_sf_list(x, nm = "data", col = NULL, crs = NULL, clean_names = TRUE) as_sf_class(x, class = NULL, crs = NULL, null.ok = TRUE, ...)
x |
A |
crs |
coordinate reference system |
sf_col |
A column name to use for the geometry column created by as_sf; defaults to "geometry". |
... |
Additional parameters passed to as_sf, as_sfc, as_bbox, or as_sf_list |
nm |
For as_sf_list, name(s) for sf list; defaults to "data". If col is provided, the values of the grouping column are used as names. |
col |
For as_sf_list, the name of the column used to group data if x is a sf object or used to group and nest data before passing to x. |
clean_names |
If |
class |
A class to convert data to; defaults to NULL (which returns "sf") |
data |
Data that can be converted to sf, sfc, bbox or a sf list object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.