| mn {sjstats} | R Documentation |
mn(), md() and sm() calculate the mean,
median or sum of values in a vector, but have set argument na.rm
to TRUE by default.
mn(x, na.rm = TRUE) sm(x, na.rm = TRUE) md(x, na.rm = TRUE)
x |
A vector. |
na.rm |
Logical, whether to remove NA values from |
The mean, median or sum of x.
data(efc) md(efc$neg_c_7) mn(efc$neg_c_7) mean(efc$neg_c_7) sm(efc$neg_c_7 > 15)