Many thanks to those who have answered my question.
Could I ask Gabor and Peter the meaning of:

> sum(sapply(ttt,function(f) f(x)))

I gather that a "mysterious" function f(x) is applied to all components of 
ttt, and sum can act on this modified object. But what is exactly f? And how 
does the list object change?

Cheers,

J

-- 
Dr James Foadi
Department of Physics
University of York
York YO10 5DD

email: [EMAIL PROTECTED]
web page: http://www-users.york.ac.uk/~jf117
Tel: 0044 1904 434622
Mobile: 0044 7740 678548

______________________________________________
[email protected] 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.

Reply via email to