Re: [R] list indexing problem reading in files from a directory

2009-08-11 Thread stephen sefick
here is an intermediate solution that works just fine. Thank you all for your help. Stephen Sefick #level logger read in read.ll <- function(path){ library(chron) library(zoo) list.of.files <- list.files(path) length.files <- length(list.of.files) df <- vector(mode = "list", length = len

Re: [R] list indexing problem reading in files from a directory

2009-08-11 Thread Gavin Simpson
On Tue, 2009-08-11 at 12:45 -0500, stephen sefick wrote: > I am running into a problem with allocating these files to a list as > they are read in through a for loop. I know I am probably doing > something wrong, but I can't figure out what. I know this is not > reproducible. I am ending up with

Re: [R] list indexing problem reading in files from a directory

2009-08-11 Thread Charles C. Berry
On Tue, 11 Aug 2009, stephen sefick wrote: I am running into a problem with allocating these files to a list as they are read in through a for loop. I know I am probably doing something wrong, but I can't figure out what. I know this is not reproducible. I am ending up with a data frame of th

[R] list indexing problem reading in files from a directory

2009-08-11 Thread stephen sefick
I am running into a problem with allocating these files to a list as they are read in through a for loop. I know I am probably doing something wrong, but I can't figure out what. I know this is not reproducible. I am ending up with a data frame of the very last file to be read in. I know it is