Dataclass-class            package:distr            R Documentation

_C_l_a_s_s "_D_a_t_a_c_l_a_s_s"

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     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.

_S_l_o_t_s:

     '_f_i_l_e_n_a_m_e': Object of class '"character"': the filename the data
          shall be saved

     '_D_a_t_a': Object of class '"vectororNULL"': the actual data, either
          of type "NULL" (means no data) or "vector"

     '_r_u_n_s': Object of class '"numeric"': the number of runs of the
          data

     '_s_a_m_p_l_e_s_i_z_e': Object of class '"numeric"': the size of the sample

_M_e_t_h_o_d_s:

     _D_a_t_a 'signature(object = "Dataclass")': returns the actual data

     _D_a_t_a<- 'signature(object = "Dataclass")': changes the data

     _e_v_a_l_u_a_t_e 'signature(object = "Dataclass", estimator =
          "function")':

          creates an object of type "Evaluation", see there for further
          information 

     _f_i_l_e_n_a_m_e 'signature(object = "Dataclass")': returns the the
          filename

     _f_i_l_e_n_a_m_e<- 'signature(object = "Dataclass")': changes the the
          filename

     _i_n_i_t_i_a_l_i_z_e 'signature(.Object = "Dataclass")': initialize method

     _r_u_n_s 'signature(object = "Dataclass")': returns the number of runs

     _s_a_m_p_l_e_s_i_z_e 'signature(object = "Dataclass")': returns the size of
          the sample

     _s_a_v_e_d_a_t_a 'signature(object = "Dataclass")': saves the object in
          the directory of R and also a copy without data

     _p_l_o_t 'signature(x = "Dataclass")': produces a plot of the data
          matrix

     _p_r_i_n_t 'signature(x = "Dataclass")': returns filename, number of
          runs and the size of the sample

     _s_u_m_m_a_r_y 'signature(object = "Dataclass")': returns the same
          information as print, moreover a statistical summary for each
          run

_N_o_t_e:

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

_A_u_t_h_o_r(_s):

     Thomas Stabla Thomas.Stabla@uni-bayreuth.de,
      Florian Camphausen Florian.Camphausen@uni-bayreuth.de,
      Peter Ruckdeschel Peter.Ruckdeschel@uni-bayreuth.de,
      Matthias Kohl Matthias.Kohl@uni-bayreuth.de

_S_e_e _A_l_s_o:

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

_E_x_a_m_p_l_e_s:

     D <- Dataclass(Data = matrix(c(1,2,3,4,5,6),2),
                    filename = "xyz.sav")
     # A new object of type "Dataclass" is created.
     savedata(D)
     # 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"
     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

