powered by
MARGIN=1
apply
rowApply(data, fun, ...)
R
fun
rowApply(list(1,2,3),function (x) sum(unlist(x))) df<-data.frame(a=c(1,2,3),b=c(1,2,3)) rowApply(df,sum)
Run the code above in your browser using DataLab