getVariableNames.ggobi {Rggobi}R Documentation

Variable names of a ggobi dataset

Description

This sets or retrieves the names of the variables within a ggobi dataset.

Usage

getVariableNames.ggobi(tform = FALSE, .data = 1, .gobi=getDefaultGGobi())
setVariableNames.ggobi(..., .data = 1, .gobi=getDefaultGGobi())

Arguments

tform a logical value indicating whether the names of the transformed variables (TRUE) or the regular names (FALSE) are to be returned.
.data the identifier for the dataset the name of whose variables are to be returned. This can be an object of class ggobiDataset, the name of the dataset (returned by names.ggobi) or an integer index.
.gobi The identifier for the ggobi instance in which to find the dataset. This should be an object of class ggobi or alternatively an integer identifying the ggobi instance by order. See getDefaultGGobi, getGGobi and getNumGGobis.
... a collection of name=value pairs giving the current name of a variable and its new name in the form current=new. This specifies the mapping from an existing name to the new name that is to replace it.

Details

This resolves the ggobi instance, then the dataset and returns the variable names.

Value

A character vector containing the names of the variables in the specifid dataset.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

dimnames.ggobiDataset colnames.ggobiDataset names.ggobi

Examples

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

   # Use the default ggobi and dataset
  getVariableNames.ggobi()

  getVariableNames.ggobi(.data = g[[1]])

  dimnames(g[[1]])[[2]]  
  colnames(g[[1]])  
  names(g[[1]])

  g$setData(system.file("data", "sat.xml", package="Rggobi"), add = TRUE)
  getVariableNames.ggobi(.data="SAT scores")

[Package Rggobi version 1.1-3 Index]