updateData {iSPlot} | R Documentation |
updateData is an interface function to update data. So whenever the whole data set needs to be updated, this function is called. This function will be useful if the user wants to add new data types or new ways of storing the data.
updateData(type, name, newData, ...)
type |
the type of data to update, currently only "dataframe" is supported |
name |
the name of the data to update |
newData |
the new data |
... |
any extra parameters future users may need |
Elizabeth Whalen
data(USArrests) loadDFData(USArrests,"USArrests") # now slightly change the data changeUSArrests<-get("dfList",dataEnv)[["USArrests"]][["curDF"]] changeUSArrests[,match("color",names(changeUSArrests))]<-rep("blue", nrow(changeUSArrests)) updateData(type="dataframe",name="USArrests",newData=changeUSArrests) # to see the changes x<-getData(type="dataframe",name="USArrests")