Learn R Programming

RnavGraph (version 0.1.8)

shortnames: Returns the shortnames of a NG_data object.

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

shortnames(x)

Arguments

x
NG_data object.

Value

Vector of strings.

See Also

navGraph, ng_data

Examples

Run this code
## 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

Run the code above in your browser using DataLab