How can I get with dplyr the minimum (or mean) value of each row on a data.frame? I mean the same result as
apply(mydataframe, 1, mean) apply(mydataframe, 1
How about this?
library(dplyr) as.data.frame(t(mtcars)) %>% summarise_all(funs(mean))
For extra clarity, you could add another t() at the end:
t()
as.data.frame(t(mtcars)) %>% summarise_all(funs(mean)) %>% t()