getDatasetNames.ggobi {Rggobi}R Documentation

Get the names or index of the datasets in a ggobi instance

Description

The getDatasetNames.ggobi is a method for obtaining the names of the different datasets within a ggobi instance. Occassionally it is also useful to map the name of one of these datasets to is position or index.

datasetIndex.ggobi does this, but it is used infrequently given the introduction of the ggobiDataset class and methods (e.g. getDatasetReference.ggobi) for obtaining references to datasets that are position/order invariant. This is also a function that is typically used by other functions in the package and not directly called by users of the package.

Usage

getDatasetNames.ggobi(.gobi=getDefaultGGobi())
datasetIndex.ggobi(.data, .gobi=getDefaultGGobi())

Arguments

.data the names of one or more dataset whose indices are to be determined.
.gobi the identifier for the ggobi instance whose datasets are to be queried. This should be an object of class ggobi or else an integer identifying the ggobi instance by position in the list of all ggobis.

Details

The name of a dataset is defined in a variety of different ways depending on the format of the input file, data, etc.

Value

getDatasetNames.ggobi returns a character vector containing the names of the datasets.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

names.ggobi getDatasetReference.ggobi

Examples

   g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
   names(g)
   getDatasetNames.ggobi(g)

[Package Rggobi version 1.1-2 Index]