Learn R Programming

pgirmess (version 1.3.8)

write.kernel2points: Write a text file of X,Y coordinates and Z value from the output of 'kernel2d' (library splancs)

Description

Write a text file of X,Y coordinates and Z value from the output of 'kernel2d' (library splancs)

Usage

write.kernel2points(kernoutput, filename)

Arguments

kernoutput
An object output of 'kernel2d' (library splancs)
filename
a character string naming a file

Value

  • A file is written in the directory specified in filename or in the current working directory.

Details

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'.

See Also

kernel2d

Examples

Run this code
library(splancs)
    data(bodmin)
    mykernel<-kernel2d(as.points(bodmin), bodmin$poly, h0=2, nx=100, ny=100)
    write.kernel2points(mykernel, "mypoints")

Run the code above in your browser using DataLab