write.pts2grass {pgirmess} | R Documentation |
Convert a matrix of points coordinates (x,y) into an ascii GRASS vector file (lines).
write.pts2grass(poly.shp, name)
poly.shp |
A matrix or data.frame of points coordinates, column 1 = x, column 2 = y |
name |
The name of the output file (ex: "monfichier.txt" |
Write an ascii GRASS vector file (lines) that can be imported from GRASS.
A file is written in the directory specified in filename or in the current working directory.
Patrick Giraudoux pgiraudo@univ-fcomte.fr
x<-rnorm(30) y<-rnorm(30) write.pts2grass(cbind(x,y),"myfile.txt") # check the new file "myfile.txt"in the working directory