search for: trialnew

Displaying 1 result from an estimated 1 matches for "trialnew".

Did you mean: trialled
2013 Apr 17
2
use of names() within lapply()
Dear all, List g has 2 elements > names(g) [1] "2009-10-07" "2012-02-29" and the list plot lapply(g, plot, main=names(g)) results in equal plot titles with both list names, whereas distinct titles names(g[1]) and names(g[2]) are sought. Clearly, lapply is passing 'g' in stead of consecutively passing g[1] and then g[2] to process the additional 'main'