Skip to content
Prev 175118 / 398506 Next

loading and manipulating 10 data frames-simplified

Look at using a 'list' as obtained from 'lapply'

fileNames <- 'your files to be read'
Bin_main <- lapply(fileNames, function(.file){
    input <- read.csv(fileNames, ....)
    # all your calculations; e.g.,
    acre <- ...
    ....
    cbind(acres, parprob, ...)
})

Now look at the structure ('str(Bin_main)') and it should have 10 (or
how ever many files you have) elements with the data you want.
On Thu, Mar 26, 2009 at 5:25 PM, PDXRugger <J_R_36 at hotmail.com> wrote: