

t {base}                                     R Documentation

_M_a_t_r_i_x _T_r_a_n_s_p_o_s_e

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

     Given a matrix or `data.frame' `x', `t' returns the
     transpose (matrix or data.frame) of `x'.

_U_s_a_g_e_:

     t(x)

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

     a <- matrix(1:30, 5,6)
     ta <- t(a) ##-- i.e.,  a[i,j] == ta[j,i] for all i,j :
     for(j in seq(ncol(a)))
       if(! a[,j] == ta[j,]) stop("wrong transpose")

