Learn R Programming

MeshAgreement (version 0.1.4)

get_name_elem: 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=" <-> ")

Value

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

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.

See Also

gsub, get_mesh_pairs

Examples

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

Run the code above in your browser using DataLab