home *** CD-ROM | disk | FTP | other *** search
-
- _M_u_l_t_i-_w_a_y _A_r_r_a_y_s
-
- 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 mov-
- ing fastest. If there are too few elements in x to
- fill the array, then the elements in x are recycled.
-
- as.array coerces its argument to be an array by attach-
- ing a dim attribute to it. The sole purpose of this is
- to make it possible to access the dim attribute at a
- later time.
-
- is.array returns TRUE or FALSE depending on whether its
- argument is an array (i.e. has a dim attribute) or not.
-
- _S_e_e _A_l_s_o:
-
- aperm, matrix.
-
- _E_x_a_m_p_l_e_s:
-
- dim(as.array(letters))
-
-