home *** CD-ROM | disk | FTP | other *** search
-
- _L_e_n_g_t_h _o_f _a _V_e_c_t_o_r _o_r _L_i_s_t
-
- length(x)
- length(x) <- n
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- If x is a vector or list length returns the length of
- x. Otherwise, length returns NA.
-
- The second form above can be used to reset the length
- of a vector. If a vector is shortened, extra values
- are discarded and when a vector is lengthened, it is
- padded out to its new length with NAs.
-
-