I want do do a mean of my dataframe with the dplyr package for all my colums.
n = c(NA, 3, 5)
s = c("aa", "bb", "cc")
b = c(3, 0, 5)
df = data.frame(n, s, b)
Here I want my function to get mean = 4 the n and b columns
I tried mean(df$n[df$n>0]) buts it's not easy for a large dataframe.
I want something like df %>% summarise_each(funs(mean)) ...
Thanks