Skip to content

parsing files for plot

2 messages · Maxim, Baptiste Auguie

#
Hi,

Hadley recently proposed a strategy using plyr for a very similar problem,

listOfFiles <- list.files()
names(listOfFiles) <- basename(listOfFiles)

library(plyr)
d <- ldply(listOfFiles, scan)

Even if you don't want to use plyr, it's always better to group things
in a list rather than clutter your workspace with lots of assign()ed
variables.

HTH,

baptiste
On 30 January 2010 13:19, Maxim <deeepersound at googlemail.com> wrote: