just store in the list the values you want:
list1 <- list()
for (i in list.files(pattern=".*c02.*AFDH0.*")){
x <- read.table(i,skip=20,fill=TRUE)
list1[[i]] <- subset(x, value > 1.0)
}
On 10/13/07, Svempa <[EMAIL PROTECTED]> wrote:
>
> I have this code:
>
> list1 <- list()
> for (i in
I have this code:
list1 <- list()
for (i in list.files(pattern=".*c02.*AFDH0.*")){
x <- read.table(i,skip=20,fill=TRUE)
list1[[i]] <- x
}
Somehow I would like the read.table function to read only values in each
file that are over a certain limit, say >1. Is this the easiest way or is it
bet
2 matches
Mail list logo