View source: R/poly_functions.R
load_poly | R Documentation |
Load a polygon from a file. For the moment, only .csv and .rdata are implemented. The loading method is defined by the filename extension.
load_poly(load_path, lon_name = "longitude", lat_name = "latitude")
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 |
Polygon as sfc class defined in "sf" package is extension is .csv. Return a list comprising a polygon of sfc class.
## Not run: polygone = load_poly("/home/.../<path_to_save_directory>/save_poly.rdata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.