csApply                package:prada                R Documentation

_A_p_p_l_y _a _f_u_n_c_t_i_o_n _o_v_e_r _t_h_e _i_n_t_e_n_s_i_t_i_e_s _i_n _a _c_y_t_o_S_e_t

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

     This a wrapper for 'sapply' for objects of class 'cytoSet-class'.

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

     csApply(X, FUN, ..., simplify = TRUE)

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

       X: cytoSet.

     FUN: the function to be applied.

     ...: optional arguments to 'FUN'.

simplify: logical; should the result be simplified to a vector or
          matrix if possible? Gets passed on the 'sapply'.

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

     A wrapper for 'sapply'.

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

     Like 'sapply': If 'FUN' always returns a scalar, then the value of
     this function is a named vector. If 'FUN' always returns a vector
     of length 'n', then the value of this function is an 'n x
     length(X)' matrix with dimnames. Else, the value of this function
     is a named list whose values are the return values of the
     individual calls to 'FUN'.

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

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

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

     'sapply'

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

     cset=readCytoSet(path=system.file("extdata", package="prada"),
       pattern="[A-Z][0-9][0-9]$")
     csApply(cset, nrow)
     csApply(cset, colMeans)

