Class "Dataclass"

In an object of type "Dataclass" data can be saved containing any number of runs in any dimension. All information about the data is stored in a unified way.


The saved Dataclass can be loaded with the usual load-command, the saved comment with the function cload.

Objects from the Class

Objects can be created by calls of the form Dataclass(filename, Data). A Dataclass-object includes, aside from the actual data, a filename and the number of runs and the size of the sample, which give the number of rows and columns of the data matrix.

See Also

Simulation-class Contsimulation-class Evaluation-class plot-methods print-methods summary-methods load cload savedata-methods

  • Dataclass-class
  • Dataclass
  • initialize,Dataclass-method
D <- Dataclass(Data = matrix(c(1,2,3,4,5,6),2),
               filename = "xyz.sav")
# A new object of type "Dataclass" is created.
# creates a file called "xyz.sav" where the information is saved and a
# copy "xyz.sav.comment" without data
Data(D) <- matrix(c(11,12,13,14,15,16),2) # changes the data of D
cload("xyz.sav") # loads the object without data - it is called "D.comment"
load("xyz.sav") # loads the original object "D"
Data(D) # the original data: matrix(c(1,2,3,4,5,6),2)
evaluate(object = D, estimator = mean) # returns the mean of each variable
Documentation reproduced from package distr, version 1.4, License: GPL (version 2 or later)

Community examples

Looks like there are no examples yet.