Hello,

>
> Hello again,
> I am still having the same problem with the main loop.it succeeded to
> finish reading and writing from the first file in my 
> listfile but failed when it moves to the second file giving this
> error:Error: subscript out of bounds
> 

Don't subscript then.
The only place where you're using the subscript is in

h=listfile[n]

The same can be made using the vector 'listfile' directly, for instance,
(dummy loop, just to see if it works.)

for(h in listfile){
        print(h)
        print(file.info(h)$size)
}

Hope this helps,

Rui Barradas


--
View this message in context: 
http://r.789695.n4.nabble.com/Min-Max-tp4593065p4595202.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to