[R] 'fixing' list components

Griffith Feeney gfeeney at hawaii.edu
Wed Sep 20 18:39:40 CEST 2000


I have a list x (say) that will contain many inputs to and outputs a model.

x$input1 <- assign.input1(parameter1, parameter2)

is one way to assign input1, but it would be neater to be able to do

assign.input1(x, parameter1, parameter2)

Is this a good idea? If so, what is a good way to do it?


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list