I'd say what you did in the past was definitely a hack that made too
strong assumptions on the internal implementation of lapply() etc. It
basically relied on *apply() to loop over the elements using an index
variable. There any many ways to do this and it seems like in R 3.2.0
there was change.
Dear list-members,
I find a annoying difference between R 3.1.3 and R 3.2.
To get the element name of a list within lapply() or mclapply() call, I
used the trick below:
For example:
essai <- list(T2345=c(5, 6, 7), T5664=c(9, 12, 17, 16))
lapply(essai, function(x) plot(x, main= names(essai)[sub
2 matches
Mail list logo