get_name_elem: Return element of a comparison string

View source: R/functions.R

get_name_elemR Documentation

Return element of a comparison string

Description

Utility function to return the first or second element of a comparison string used to indicate which two meshes are being compared.

Usage

get_name_elem(x, which=1L, sep=" <-> ")

Arguments

x

character. The string that indicates the comparison.

which

integer. Indicates whether to return the first or second element.

sep

character. The string that indicates the separator between the first and second element.

Details

Thin front-end to gsub. Only useful internally or for Shiny GUI.

Value

character element as the first or second element of the string.

See Also

gsub, get_mesh_pairs

Examples

get_name_elem("MESH_1 <-> MESH_2", which=1)

MeshAgreement documentation built on Nov. 25, 2022, 5:05 p.m.