Re: [R] Accessing list names in lapply

2009-11-20 Thread Bjarke Christensen
Yes, that is it. Or even simpler: mapply(plot, x=df1, ylab=names(df1), col=1:10, main=paste("Plot", names(df1))) Thank you! Bjarke Christensen

Re: [R] Accessing list names in lapply

2009-11-19 Thread Bjarke Christensen
Thanks to everybody who replied - I got three distinct, very useful suggestions. Bjarke Christensen Romain Francois

[R] Accessing list names in lapply

2009-11-19 Thread Bjarke Christensen
would be hoping for something like lapply(df1, function(x) plot(x, ylab=parent.index())) or some way to parse the index number out of the call, using match.call() or something like that. Thanks in advance for any comments, Bjarke Christensen __ R-help@r-pro

Re: [R] Fold function with several time varying covariates

2009-06-30 Thread Bjarke Christensen
covariate. I hope this helps - if it doesn't, you might try posting a self-contained example (code) that we can try on our systems and that will provoke the same error. Bjarke Christensen. Helen Jenkins wrote: >The error message when I use list is: >&quo