convertMesh: convertMesh

View source: R/convertMesh.R

convertMeshR Documentation

convertMesh

Description

Converts cell meshes using cellID centroids from meshToConvert and returns cellIDs from meshToMatch.

Usage

convertMesh(
  meshToMatch,
  meshToConvert,
  returnOriginalCellIDs = FALSE,
  joinBy = "cellID",
  output = "SpatVector"
)

Arguments

meshToMatch

polygon mesh to be subset. Must have "cellID" column.

meshToConvert

polygon mesh to be returned. Must have "cellID" column.

returnOriginalCellIDs

should MeshToMatch cellIDs be returned?

joinBy

name of column used to link meshes

output

type of output desired. can be either "SpatVector" or "df" for dataframe

Value

a SpatVector or dataframe with the cellIDs in meshToMatch that


troyhill/RSM documentation built on Aug. 23, 2022, 2:40 p.m.