gAddDataMessage-class {iSPlot} | R Documentation |
gAddDataMessage is a class to represent an add data message. Whenever data need to be added to the data environment, a gAddDataMessage object is created and the handleMessage method is called to act on the message. Currently, the two places where data are added to the data environment is when the Open File or Open Data menu options are chosen under the File menu. gAddDataMessage inherits from the class, gAddMessage, which inherits from the virtual class, gMessage.
Objects can be created by calls of the form new("gAddDataMessage", data, ...)
.
When creating a gAddDataMessage object, the data parameter is either
the name of the data or it is the actual data. If the data parameter
is the actual data, then the data name must be passed in the ...
parameter.
dataName
:mData
:
Class "gAddMessage"
, directly.
Class "gMessage"
, by class "gAddMessage"
.
Elizabeth Whalen
loadDFData
,
gAddViewMessage-class
if (interactive()) { createControlWindow() # should load data through Open Data or Open File under the File menu data("USArrests") dMessage<-new("gAddDataMessage", data="USArrests") handleMessage(dMessage) # check to make sure it has been loaded in dataEnv names(getDataEnvVar("dfList")) # check the class class(dMessage) }