The piece of R code given above is meant to perform calculations for many files(12) in one folder.But I am getting this error:Error: subscript out of bounds.It finished reading the first file(successfully) but the error arose when it started to read the next file. Any suggestions why?. I think the problem is in this first loop: for (n in 1:length(listfile)) { h=listfile[n] b=file.info(h[n])$size/67420/4
-- View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4593279.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.