getVariable.ggobi {Rggobi}R Documentation

Get the values of a GGobi variable

Description

This retrieves the values of a variable within a GGobi dataset, handling categorical variables as S factors.

Usage

getVariable.ggobi(which, .data=1, .gobi=getDefaultGGobi(), asDataFrame=F)

Arguments

which the identifiers for the variables to be retrieved, given by index or variable name
.data an identifier for the dataset, either an index, name or ggobiDataset object.
.gobi the GGobi instance, given by index or an object of class ggobi. The currently active GGobi instance is used by default.
asDataFrame a logical value indicating whether the result should be given as a data frame or left as a list.

Value

A dataframe or a list (depending on whether asDataFrame is TRUE or FALSE) whose elements are the variables copied from the GGobi dataset.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org/RSggobi http://www.ggobi.org

See Also

setVariableValues.ggobi [.ggobiDataset [.ggobiDataset

Examples

 ggobi(system.file("data", "flea", package="Rggobi"))
 getVariable.ggobi("tars1")
 getVariable.ggobi(1)

[Package Contents]