Yes ,It worked. So how can I insert it in my code? Please for(h in listfile){ + print(h) + print(file.info(h)$size) + } [1] "Wind_WFD_200101.nc.img" [1] 66880640 [1] "Wind_WFD_200102.nc.img" [1] 60408320 [1] "Wind_WFD_200103.nc.img" [1] 66880640 [1] "Wind_WFD_200104.nc.img" [1] 64723200 [1] "Wind_WFD_200105.nc.img" [1] 66880640 [1] "Wind_WFD_200106.nc.img" [1] 64723200 [1] "Wind_WFD_200107.nc.img" [1] 66880640 [1] "Wind_WFD_200108.nc.img" [1] 66880640 [1] "Wind_WFD_200109.nc.img" [1] 64723200 [1] "Wind_WFD_200110.nc.img" [1] 66880640 [1] "Wind_WFD_200111.nc.img" [1] 64723200 [1] "Wind_WFD_200112.nc.img" [1] 66880640
-- View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4595216.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.