fm_store_points: Store points in different formats

View source: R/mesh.R

fm_store_pointsR Documentation

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)

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"

Value

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

Examples

fm_store_points(fmexample$loc, format = "sf")


fmesher documentation built on July 1, 2024, 5:07 p.m.