dims                  package:Zelig                  R Documentation

_R_e_t_u_r_n _D_i_m_e_n_s_i_o_n_s _o_f _V_e_c_t_o_r_s, _A_r_r_a_y_s, _a_n_d _D_a_t_a _F_r_a_m_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Retrieve the dimensions of a vector, array, or data frame.

_U_s_a_g_e:

     dims(x)

_A_r_g_u_m_e_n_t_s:

       x: An R object.  For example, a vector, matrix, array, or data 
          frame.

_V_a_l_u_e:

     The function 'dims' performs exactly the same as 'dim', and 
     additionally returns the 'length' of vectors (treating them as 
     one-dimensional arrays).

_A_u_t_h_o_r(_s):

     Olivia Lau <olau@fas.harvard.edu>

_S_e_e _A_l_s_o:

     'dim', 'length'

_E_x_a_m_p_l_e_s:

     a <- 1:12
     dims(a)

     a <- matrix(1, nrow = 4, ncol = 9)
     dims(a)

