score                 package:scope                 R Documentation

_C_a_l_c_u_l_a_t_e _L_e_n_g_t_h_s _o_f _E_l_e_m_e_n_t_s _f_o_r _a _S_c_o_p_e _O_b_j_e_c_t

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

     For each row represented by a scope object, give the number of row
     names that  are 'in scope': i.e. the lengths of the per-row
     vectors.

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

     score(scope, ...)

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

   scope: A scope object, e.g. created by 'scope()'.

     ...: extra arguments, currently unused.

_D_e_t_a_i_l_s:

     This is a useful analytical tool, e.g., for checking whether
     previous calls  to 'scope()' have limited per-row scopes to
     exactly one row name (a  condition expected by 'scoop()').  At
     present, 'score()' merely calls 'sapply()' and assigns names to
     the result.

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

     A vector of integers, representing numbers of row names per
     element in a scope object.

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

     'scope', 'skim', 'scoop', 'probe'

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

     data(Theoph)
     #Consider rows within Subject.
     S <- scope(Theoph,'Subject')
     #How many row names in scope, per row?
     min(score(S))
     max(score(S))

