some                   package:car                   R Documentation

_S_a_m_p_l_e _a _F_e_w _E_l_e_m_e_n_t_s _o_f _a_n _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Randomly select a few elements of an object, typically a data
     frame, matrix, vector, or list. If the object is a data frame or a
     matrix, then rows are sampled.

_U_s_a_g_e:

     some(x, ...)

     ## S3 method for class 'data.frame':
     some(x, n=10, ...)

     ## S3 method for class 'matrix':
     some(x, n=10, ...)

     ## Default S3 method:
     some(x, n=10, ...)

_A_r_g_u_m_e_n_t_s:

       x: the object to be sampled.

       n: number of elements to sample.

     ...: arguments passed down.

_V_a_l_u_e:

     Sampled elements or rows.

_N_o_t_e:

     These functions are adapted from 'head' and 'tail'  in the 'utils'
     package.

_A_u_t_h_o_r(_s):

     John Fox jfox@mcmaster.ca

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

     'head', 'tail'.

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

     some(data.frame(z=rnorm(100), u=runif(100)))

