write.kernel2points {pgirmess}R Documentation

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

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

Value

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

Author(s)

Patrick Giraudoux <pgiraudo@univ-fcomte.fr>

See Also

kernel2d

Examples

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

[Package pgirmess version 1.3.8 Index]