Here I got a function : f<-function(x){ res<-list() res$bool=(x>=0) res$tot=x return(res) }
I want that a=res$bool and b=res$tot I know that a possible solution is : Result=f(x) a=Result$bool b=Result$tot But I don't want to use the variable Result. I'd like to write directly something like [a,b]=f(x). Is it possible ? Thank you nicolas [[alternative HTML version deleted]] ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html