modify {iSPlot}R Documentation

Modify one or more points in a data set

Description

modify can change one more points (a point being defined by a row and a column index) at a time in a data set loaded in dfList in dataEnv. dfList is the data environment variable that contains the loaded data sets. modify will check that the data to be added is of the correct type to match the other data in that column by calling checkIndivTypes.

Usage

modify(dfName, Rname, Cname, data)

Arguments

dfName the dataframe name - a character string
Rname the row name or index (may be a vector of length greater than or equal to 1)
Cname the column name or index (may be a vector or length greater than or equal to 1)
data the new data to be placed in these points

Details

Note that Rname, Cname and data must be the same length. Rname and Cname are vectors, but data is a list.

Author(s)

Elizabeth Whalen

See Also

checkIndivTypes, gUpdateDataMessage-class

Examples

  # should load data through Open Data or Open File under the File menu
  data(USArrests)
  loadDFData(USArrests,"USArrests")
  # should modify using the control window (by choosing the view mode and
  # then clicking on a plot)
  modify("USArrests",Rname=c("Massachusetts","Ohio"),Cname=c("color","color"),data=c("red","green"))
  # to see the results
  get("dfList",dataEnv)[["USArrests"]][["curDF"]]

[Package iSPlot version 1.0.3 Index]