allignment              package:BSagri              R Documentation

_A_l_l_i_g_n_m_e_n_t _a_c_c_o_r_d_i_n_g _t_o _o_n_e _f_a_c_t_o_r

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

     Substracts the mean or median from observations belonging to the
     same level of a factor.

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

     allignment(response, block, type = c("mean", "median"), ...)

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

response: a numeric vector 

   block: a factor of the same length as 'response' 

    type: type of location measure to calculate and substract; only the
          choices "mean" and "median" are supported 

     ...: further arguments to be passed to 'mean' or 'median' 

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

     Splits 'response' according to the levels of 'block', calculates
     and substracts the mean or median and returns the resulting vector
     in appropriate order.

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

     A numeric vector.

