reset {iSPlot}R Documentation

Reset a data set to its original state

Description

reset removes any changes that have been made to a data set in dfList in dataEnv since the data set was loaded. dfList is the data environment variable the holds the loaded data sets. reset is called by choosing Reset under the Edit menu.

Usage

reset(dfName)

Arguments

dfName the dataframe name - a character string

Warning

Removing the changes to the data set is permanent.

Author(s)

Elizabeth Whalen

See Also

updateData

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"]]
  # should call reset using Reset under the Edit menu
  reset("USArrests")
  # to see the results
  get("dfList",dataEnv)[["USArrests"]][["curDF"]]    

[Package iSPlot version 1.0.3 Index]