expand_node: Expand MTG line

Description Usage Arguments Value Examples

View source: R/read_MTG.R

Description

Expand the elements denoted by the syntactic sugar "<<", "<.<", "++" or "+.+"

Usage

1

Arguments

x

A split MTG line (e.g. c("/P1","/A1"))

Value

A split MTG line with explicitly all nodes

Examples

1
2
3
4
5
6
## Not run: 
x = strsplit(x = "/A1+U85/U86<U87<.<U93<U94<.<U96<U97+.+U100",
"(?<=.)(?=[</+])",perl = TRUE)[[1]]
expand_node(x)

## End(Not run)

VEZY/XploRer documentation built on Oct. 9, 2021, 10:05 p.m.