I should have been clearer, the function I supplied is just a toy example, I actually have lots more elements, each with different classes, and need to do more complex things than just summation. The main reason I'm interested in this is to avoid having to keep adding an assignment like x<-lst$x each time the input list is extended.
cheers, alastair -- View this message in context: http://r.789695.n4.nabble.com/Passing-lists-between-functions-tp4650792p4650799.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.