fm_unify_coords: Unify coordinates to 3-column matrix

View source: R/mesh_2d.R

fm_unify_coordsR Documentation

Unify coordinates to 3-column matrix

Description

Convert coordinate information to a 3-column matrix. This is mainly an internal function, and the interface may change.

Usage

fm_unify_coords(x, crs = NULL)

## S3 method for class 'NULL'
fm_unify_coords(x, crs = NULL)

## Default S3 method:
fm_unify_coords(x, crs = NULL)

## S3 method for class 'Spatial'
fm_unify_coords(x, crs = NULL)

## S3 method for class 'sf'
fm_unify_coords(x, crs = NULL)

## S3 method for class 'sfc'
fm_unify_coords(x, crs = NULL)

Arguments

x

A object with coordinate information

crs

A optional crs object to convert the coordinates to

Value

A coordinate matrix

Examples

fm_unify_coords(fmexample$loc_sf)


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