getVariableNames.ggobi {Rggobi} | R Documentation |
This sets or retrieves the names of the variables within a ggobi dataset.
getVariableNames.ggobi(tform=F, .data = 1, .gobi=getDefaultGGobi()) setVariableNames.ggobi(..., .data = 1, .gobi=getDefaultGGobi())
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 resolves the ggobi instance, then the dataset and returns the variable names.
A character vector containing the names of the variables in the specifid dataset.
Duncan Temple Lang
dimnames.ggobiDataset
colnames.ggobiDataset
names.ggobi
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=T) getVariableNames.ggobi(.data="SAT scores")