Skip to content
Prev 55250 / 398500 Next

Applying function to lots of separate data sets

On Mon, 6 Sep 2004 01:14:40 +0100 (BST), Laura Quinn
<laura at env.leeds.ac.uk> wrote:

            
Using paste() to construct variable names is overdone.  It's much
better to put all of your data into a list in one object, then just
use lapply() to apply a function to each element of the list.

For examples, see ?lapply.

Duncan Murdoch