Learn R Programming

fmesher (version 0.3.0)

fm_unify_coords: 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)

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

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

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

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

Value

A coordinate matrix

Arguments

x

A object with coordinate information

crs

A optional crs object to convert the coordinates to

Examples

Run this code
fm_unify_coords(fmexample$loc_sf)

Run the code above in your browser using DataLab