ng_get: Extract data from a NG_data, NG_graph, NG_path or navgraph...

Description Usage Arguments Value Author(s) See Also Examples

Description

Extract data from objects from some of the in RnavGraph specifically defined classes.

Usage

1
ng_get(obj, what = NULL, ...)

Arguments

obj

Either a: navgraph handler, NG_data, NG_path, NG_graph object.

what

String of what should be extracted from the object. You can get a list of possible accessible objects by not specifying the what argument.

...

Currently not used.

Value

Object that was requested with what.

Author(s)

Adrian Waddell and Wayne Oldford

See Also

navGraph, ng_get-methods, ng_set, ng_set-methods, ng_set_color<-, ng_get_color, ng_set_size<-, ng_get_size

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])

## start a navGraph session
nav <- navGraph(ng.iris)

## See what you can extract from the navGraph handler
ng_get(nav)

## get group
ng_get(ng_get(nav,"data"),"group")

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