getVariableIndex.ggobi {Rggobi}R Documentation

Convert variable names into indices.

Description

It is best to refer to variables in ggobi datasets by name, but these are converted to indices when passed to internal C code. This function performs this mapping by matching the specified variable names against those of the dataset in which they are to be resolved.

In most cases, the user does not have to call this function directly. The other functions in the package that operate on ggobi variable references call this function implicitly.

Usage

getVariableIndex.ggobi(..., .data = 1, .gobi=getDefaultGGobi()) 

Arguments

... the names (or indices) of variables to resolve and compute the internal indices. Non-character values are left unaltered and returned as is.
.data the identifier for the dataset against which to resolve the variable names. This should be an object of class ggobiDataset, a name (as returned from names.ggobi), or an integer giving the dataset by order.
.gobi the identified for the ggobi instance in which to find the dataset.

Value

An integer vector giving the indices of the variables referenced in the ... arguments.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

Examples






[Package Contents]