Hi Orietta, As the error message is telling you, R cannot find a file named "Chile" in your default folder. Just replace "Chile" with a full path to the file. All the best,
Julian Julian Mariano Burgos, PhD Hafrannsóknastofnunin/Marine Research Institute Skúlagata 4, 121 Reykjavík, Iceland Sími/Telephone : +354-5752037 Bréfsími/Telefax: +354-5752001 Netfang/Email: [email protected] > Dear R users, > > > I'm trying to run the following example with data of Chile, but I didn't > find a EPSG code for this country which could be used in R. > > data <http://inside-r.org/r-doc/utils/data>(meuse) > coordinates(meuse)<-~x+y proj4string(meuse) <- CRS('+init=epsg:28992') > # Line data > data <http://inside-r.org/r-doc/utils/data>(meuse.grid) > coordinates(meuse.grid)<-c <http://inside-r.org/r-doc/base/c>('x','y') > meuse.grid<-as <http://inside-r.org/r-doc/methods/as>(meuse.grid, > 'SpatialPixelsDataFrame') > im<-as.image.SpatialGridDataFrame(meuse.grid['dist']) > cl<-ContourLines2SLDF(contourLines<http://inside-r.org/r-doc/grDevices/contourLines> > (im)) > proj4string(cl) <- CRS('+init=epsg:28992') > > > I run the script: > > make_EPSG("Chile") > > but it gives the following error: > > In file(file, open = "r") : > cannot open file 'Chile': No such file or directory > Please, can anyone suggest me how to solve this problem? > Thank you very much, > Orietta > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
