[R] Batch importing data with respective naming

Zeljko Vrba zvrba at ifi.uio.no
Wed Apr 29 07:43:55 CEST 2009


On Tue, Apr 28, 2009 at 07:09:04PM -1000, Taylor Hermes wrote:
> 
> I tried the following:
> 
Add this before for():

peak <- list()

> for (i in 1:100) {
> 	peak[[i]] <- read.table(paste(i,"--one--hist.txt", sep=""), sep=",",
> header=TRUE)
> }
>




More information about the R-help mailing list