Learn R Programming

fmesher (version 0.3.0)

fm_store_points: Store points in different formats

Description

Convert a matrix of points into different formats.

Usage

fm_store_points(loc, crs = NULL, info = NULL, format = NULL)

Value

An sf, data.frame, or SpatialPointsDataFrame object, with optional added information.

Arguments

loc

a coordinate matrix

crs

CRS information to associate with the coordinates

info

An optional data.frame of additional data

format

character; "sf", "df", "sp"

Examples

Run this code
fm_store_points(fmexample$loc, format = "sf")

Run the code above in your browser using DataLab