Dear Roman
The problem is not with the path.
I tried separate code for each variables; and stacking works well
myEx = raster::stack(system.file("SAJBEnv/bio01.asc",package="dismo"),
system.file("SAJBEnv/bio02.asc",package="dismo"))
However, I am still in doubt why the other way it does not works
(previously it worked with lower version V 3.1.1)
I am using upgraded versions now.
With best Regards
Rajendra M Panda
SWR, IIT KGP
On Mon, Apr 20, 2015 at 4:08 PM, romunov <romunov at gmail.com> wrote:
Is it possible that the path is wrong? Can you provide more information about the path? Cheers, Roman On Sunday, April 19, 2015, Rajendra Mohan panda <rmp.iit.kgp at gmail.com> wrote:
Dear All If I run fnames <- stack(list.files(path=paste(system.file(package="dismo"), "/ex", sep=""),pattern = "grd", full.names=TRUE)) It works fine. While I change my folder name to anything else with the same path, it gives following error: Error in x[[1]] : subscript out of bounds Kindly advise how it can be sorted out. Look forward to your kind response With Best Regards Rajendra M Panda School of Water Resources Indian Institute of Technology Kharagpur
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
-- In God we trust, all others bring data.