setVariableValues.ggobi {Rggobi} | R Documentation |
These functions allow one to set the values of one or more variables within a ggobi dataset.
setVariableValues.ggobi(values, var, rows = 1:length(values), update = TRUE, .data = 1, .gobi=getDefaultGGobi())
values |
a numeric vector of values which are to be used as the values for the specified variable. |
var |
an identifier for the variable whose values are to be
replaced with those in values . This can be either a
name or alternatively an integer identifying the variable by index. |
rows |
the indices of the rows whose values are to be set. The i-th element of values becomes the value of the rows[i] element of the specified variable. |
update |
whether to update the displays after setting the values. Typicaly this is TRUE. However, if one wanted to set values for other variables after this, one can delay the update operation until all changes are complete. |
.data |
the identifier for the dataset in which the variable(s) reside. |
.gobi |
the ggobi instance. |
setVariableNames.ggobi
returns the previous settings
for the names of those variables that were modified.
setVariableValues.ggobi
returns the previous values for the
records/observations in the specified variable.
setVariable.ggobi
and setVariableValues.ggobi
appear to be very similar. That probably means that a) one will disappear
and b) one is not tested as comprehensively as the other.
Duncan Temple Lang
setDataFrame.ggobi
names.ggobiDataset
getVariable.ggobi
setVariableNames.ggobi
g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit") g$setVariableNames(tars1="New name", aede1="Other name") # Set all the values of the tars1 variable to `1'. g$setVariableValues(rep(1, 74), rows = 1:74, var = "tars1") # Set the first 23 values. g$setVariableValues(rnorm(23), var = "tars1")