View source: R/df_sf_to_gpkg.R
df_sf_to_gpkg | R Documentation |
This function adds dataframes (with coordinates) and/or sf spatial objects into a gpkg file. Dataframes will be converted into sf POINT objects, but if existing sf objects are submitted, they will be added to the gpkg file.
df_sf_to_gpkg(
df = NULL,
lat.field = "LATITUDE",
lon.field = "LONGITUDE",
crs = 4326,
makeSpatial = T,
path = NULL,
layerName = NULL,
gpkgName = "r_layers.gpkg"
)
df |
the default is |
lat.field |
the default is |
lon.field |
the default is |
crs |
the default is |
makeSpatial |
the default is |
path |
this is the path to the gpkg file (e.g. "c:/folder/") |
layerName |
the default is |
gpkgName |
the default is |
NULL - writes shapefile to current working directory
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other general_use:
DDMMSS_to_DD()
,
DDMMx_to_DD()
,
aggregator()
,
clip_by_poly()
,
combine_lists()
,
df_qc_spatial()
,
df_to_sf()
,
drop_cols()
,
prepare_shape_fields()
,
subset_by_time()
,
updateCheck()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.