SIG.export: Export de données en shp

View source: R/SIG.export.R

SIG.exportR Documentation

Export de données en shp

Description

Cette fonction permet d'exporter un dataframe (avec deux colonnes X et Y) ou un sf en Lambert 93 dans un shapefile/geojson/kml/excel

Usage

SIG.export(
  data = Stations,
  nomfichier = glue("{today()}_Export_stations"),
  shp = TRUE,
  kml = TRUE,
  geojson = TRUE,
  excel = TRUE
)

Arguments

data

Dataframe à exporter

nomfichier

Nom du fichier de sortie

shp

Export au format shapefile (true par défaut)

kml

Export au format kml (true par défaut)

geojson

Export au format geojson (true par défaut)

excel

Export au format excel (true par défaut)

Examples

SIG.export(Stations, glue("{today()}_Export_stations"))
Stations %>% SIG.export("Stations", shp = F, kml = F, excel = F)
Resultats %>% SIG.export(glue("{today()}_Suivi_MI_BV_Bienne"), shp = F, kml = F, excel = F)
Stations %>% SIG.export(glue("{today()}_{str_replace_all(titre, ' ', '_')}"))
DataToAdd %>% st_as_sf(coords = c("XLong", "YLat"), crs = 4269) %>% st_transform(2154) %>% SIG.export("GCL_Bathy_points_bruts")

jbfagotfede39/aquatools documentation built on Jan. 22, 2025, 1:20 p.m.