home *** CD-ROM | disk | FTP | other *** search
-
- _T_h_e _N_u_m_b_e_r _o_f _C_o_l_u_m_n_s _o_f _a _M_a_t_r_i_x
-
- ncol(x)
- .COL(x)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : array
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- ncol returns the number of columns present in its argu-
- ment. .COL does the same, but dealing a vector as 1-
- column matrix.
-
- _S_e_e _A_l_s_o:
-
- nrow and NROW.
-
- _E_x_a_m_p_l_e_s:
-
- ncol(matrix(1:12, 3, 4)) # 4
- ncol(array(1:24, dim= 2:4)) # 3, the second dimension
- .COL(1:12) # 1
-
-