shortnamessetter: Modify the shortnames of a NG_data object.

Description Usage Arguments Author(s) See Also Examples

Description

Shortnames are useful to reduce the node names of navigation graphs. The node names of navigation graphs are either linked with the names or the shortnames of the NG_data object.

Usage

1
shortnames(x) <- value

Arguments

x

NG_data object.

value

Vector of stings.

Author(s)

Adrian Waddell and Wayne Oldford

See Also

navGraph, ng_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Define a NG_data object
ng.iris <- ng_data(name = "iris", data = iris[,1:4])

## Display shortnames
shortnames(ng.iris) ## no shortnames defined yet

## Modify the shortnames
shortnames(ng.iris) <- c("sL","sW","pL","pW")

## Display updated shortnames
shortnames(ng.iris) ## no shortnames defined yet

RnavGraph documentation built on May 29, 2017, 4:18 p.m.