Re: [R] lapply item names

2008-11-01 Thread Chibisi Chima-Okereke
Fantabulous, Thanks On Sat, Nov 1, 2008 at 3:43 PM, jim holtman <[EMAIL PROTECTED]> wrote: > lapply(names(dataSet), function(.name) plotFunction(dataSet[[.name]], > main=.name)) > > On Sat, Nov 1, 2008 at 10:31 AM, Chibisi Chima-Okereke <[EMAIL PROTECTED]> > wrote: > > Dear all, > > > > I am usi

Re: [R] lapply item names

2008-11-01 Thread jim holtman
lapply(names(dataSet), function(.name) plotFunction(dataSet[[.name]], main=.name)) On Sat, Nov 1, 2008 at 10:31 AM, Chibisi Chima-Okereke <[EMAIL PROTECTED]> wrote: > Dear all, > > I am using lapply to generate plots by applying a plot function to a list of > dataframes. e.g. > > lapply(dataSet,

[R] lapply item names

2008-11-01 Thread Chibisi Chima-Okereke
Dear all, I am using lapply to generate plots by applying a plot function to a list of dataframes. e.g. lapply(dataSet, FUN = plotFunction) Is there a way to call the list item number inside the plot function so that I can identify each graph? Thanks Chibisi [[alternative HTML version