na package:marray R Documentation _B_a_s_i_c _S_t_a_t_i_s_t_i_c_a_l _F_u_n_c_t_i_o_n_s _f_o_r _H_a_n_d_l_i_n_g _M_i_s_s_i_n_g _V_a_l_u_e_s _D_e_s_c_r_i_p_t_i_o_n: Basic statistical functions for handling missing values or NA. In 'log.na', 'sum.na', 'mean.na' and 'var.na', 'quantile.na', 'length.na', missing values are omitted from the calculation. The function 'cor.na' calls 'cor' with the argument 'use="pairwise.complete.obs"'. The function 'order.na' only handles vector arguments and not lists. However, it gives the option of omitting the NAs ('na.last=NA'), of placing the NAs at the start of the ordered vector ('na.last=F') or at the end ('na.last=T'). The function 'scale.na' is a modified version of 'scale' which allows NAs in the variance calculation. If 'scale = T', the function 'f' in 'scale.na' uses 'var.na' to perform the variance calculation. The function 'prod.na' is similar to the 'prod' function with 'na.rm=TRUE'. This function returns the product of all the values present in its arguments, omitting any missing values. _A_u_t_h_o_r(_s): Yee Hwa Yang, jean@biostat.berkeley.edu _S_e_e _A_l_s_o: 'log', 'sum', 'mean', 'var', 'cor', 'order', 'scale', 'prod'.