Skip to content
Prev 12609 / 398502 Next

style question: returning multiple arguments - structure or list

Kevin Murphy wrote:
The second of these looks a little odd to me.  In the first x, y, and z
are treated symmetrically while the second is asymmetric.

You might also consider whether you want to unpackage the x, y and z
values from the list at all.  If you are just using the returned values
you may as well refer to them as res$x, res$y and res$z.

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._