ktab                  package:ade4                  R Documentation

_t_h_e _c_l_a_s_s _o_f _o_b_j_e_c_t_s '_k_t_a_b' (_K-_t_a_b_l_e_s)

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

     an object of class 'ktab' is a list of data frames with the same
     row.names in common.
      a list of class 'ktab' contains moreover :

_b_l_o : the vector of the numbers of columns for each table

_l_w : the vector of the row weightings in common for all tables

_c_w : the vector of the column weightings

_T_L : a data frame of two components to manage the parameter positions
     associated with the rows of tables

_T_C : a data frame of two components to manage the parameter positions
     associated with the columns of tables

_T_4 : a data frame of two components to manage the parameter positions
     of 4 components associated to an array

_U_s_a_g_e:

     c.ktab (...)
     x[selection]
     is.ktab(x)
     t.ktab(x)
     row.names.ktab(x)
     col.names.ktab(x)
     tab.names(x)
     col.names(x)
     ktab.util.names(x)

_A_r_g_u_m_e_n_t_s:

       x: an object of the class 'ktab'

     ...: a sequence of objects of the class 'ktab'

selection: an integer vector

_D_e_t_a_i_l_s:

     A 'ktab' object can be created with :
      a list of data frame : 'ktab.list.df'
      a list of 'dudi' objects : 'ktab.list.dudi'
      a data.frame : 'ktab.data.frame'
      an object 'within' : 'ktab.within'
      a couple of 'ktab's : 'ktab.match2ktabs'

_V_a_l_u_e:

     'c.ktab' returns an object 'ktab'. It concatenates K-tables with
     the same rows in common. 
      't.ktab' returns an object 'ktab'. It permutes each data frame
     into a K-tables. All tables have the same column names and the
     same column weightings (a data cube). 
      '"["' returns an object 'ktab'. It allows to select some arrays
     in a K-tables. 
      'is.ktab' returns TRUE if x is a K-tables. 
      'row.names' returns the vector of the row names common with all
     the tables of a K-tables and allowes to modifie them.
      'col.names' returns the vector of the column names of a K-tables
     and allowes to modifie them.
      'tab.names' returns the vector of the array names of a K-tables
     and allowes to modifie them.
      'ktab.util.names' is a useful function.

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

     Daniel Chessel chessel@biomserv.univ-lyon1.fr

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

     data(friday87)
     wfri <- data.frame(scale(friday87$fau, scal = FALSE))
     wfri <- ktab.data.frame(wfri, friday87$fau.blo)
     wfri[2:4]
     c(wfri[2:4], wfri[5])

     data(meaudret)
     wit1 <- within.pca(meaudret$mil, meaudret$plan$dat, scan = FALSE, 
         scal = "partial")
     kta1 <- ktab.within(wit1, colnames = rep(c("S1","S2","S3","S4","S5"), 4))
     kta2 <- t(kta1)
     kplot(sepan(kta2), clab.r = 1.5, clab.c = 0.75)

