Dear R users, I have multi-argument returns in a function and I am warned by the program they are deprecated.
I have found this in the R-help archives : http://tolstoy.newcastle.edu.au/R/help/01c/0319.html http://tolstoy.newcastle.edu.au/R/help/01c/0356.html Since I am not too good at programming, the list solution seems the better one for me. It is also the one advocated by Kevin Murphy. So rather than writing return(x,y,z), I should write at the end of my function : g=function() { #... result=list(x,y,z) return(result) } Is that correct ? Then shoud l use g[1] or g[[1]] ? Thank you for you help. Randall [[alternative HTML version deleted]] ______________________________________________ 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.