

array {base}                                 R Documentation

_M_u_l_t_i_-_w_a_y _A_r_r_a_y_s

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

     array(x, dim=length(x), dimnames=NULL)

     as.array(x)
     is.array(x)

_V_a_l_u_e_:

     An array with the extents specified in `dim' and naming
     information in `dimnames'.  The values in `x' are taken
     to be those in the array with the leftmost subscript
     moving fastest.  If there are too few elements in `x'
     to fill the array, then the elements in `x' are recy-
     cled.

     `as.array()' coerces its argument to be an array by
     attaching a `dim' attribute to it.  It also attaches
     `dimnames' if `x' has `names'

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

     `aperm', `matrix'.

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

     dim(as.array(letters))

