load_poly: Load a polygon from file

View source: R/poly_functions.R

load_polyR Documentation

Load a polygon from file

Description

Load a polygon from a file. For the moment, only .csv and .rdata are implemented. The loading method is defined by the filename extension.

Usage

load_poly(load_path, lon_name = "longitude", lat_name = "latitude")

Arguments

load_path

Path to load the file

lon_name

name given to the columns with the longitude component in the loaded file. Arguments only works for csv file

lat_name

name given to the columns with the latitude component in the loaded file. Arguments only works for csv file

Value

Polygon as sfc class defined in "sf" package is extension is .csv. Return a list comprising a polygon of sfc class.

Examples

## Not run: polygone = load_poly("/home/.../<path_to_save_directory>/save_poly.rdata")


BSt-Denis/gslcoenv documentation built on Feb. 10, 2023, 7:53 a.m.