R/mean_columns.R

Defines functions mean_columns

mean_columns <- function(d_frame){
  d_frame<-d_frame[sapply(d_frame,is.numeric)]
  colMeans(d_frame,na.rm = TRUE)
}

mean_columns(d)
flaviobrito/RDataAudit documentation built on Aug. 19, 2017, 12:15 a.m.