write.kernel2points {pgirmess} | R Documentation |
Write a text file of X,Y coordinates and Z value from the output of 'kernel2d' (library splancs)
write.kernel2points(kernoutput, filename)
kernoutput |
An object output of 'kernel2d' (library splancs) |
filename |
a character string naming a file |
Gives a file of points coordinates with z value (the result of the kernel function) that can be imported eg from ArcGIS. The suffix '.txt' is automatically added to 'filename'.
A file is written in the directory specified in filename or in the current working directory.
Patrick Giraudoux <pgiraudo@univ-fcomte.fr>
library(splancs) data(bodmin) mykernel<-kernel2d(as.points(bodmin), bodmin$poly, h0=2, nx=100, ny=100) write.kernel2points(mykernel, "mypoints")