R/rowMedians.R

Defines functions rowMedians

rowMedians <-
function(x) {
  # function for calculating the median of all row values
  # analogous to rowSums and rowMeans
  apply(x, MARGIN=2, median, na.rm=T)
}

Try the P2C2M package in your browser

Any scripts or data that you put into this service are public.

P2C2M documentation built on May 2, 2019, 8:24 a.m.