Peng Yu <pengyu.ut <at> gmail.com> writes:

> 
> I want an 'apply' function that can give me results by bind the result
> from each function call of g. Could somebody let me know how to do it?
> 
> g<-function(x){
  [snip]
> }
> 
> x=1:3
> 
> sapply(x,g) 

do.call(rbind,sapply(x,g))    ?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to