Nothing
.densKNearestNeighbour.xy <- function(x, y, k, hx, hy, npts)
{
output <- .C(C_RdensKNearestNeighbourXY,
n = as.integer(length(x)),
x = as.double(x),
y = as.double(y),
z = double(length(x)),
k = as.integer(k),
hx = as.double(hx),
hy = as.double(hy),
error = integer(1),
PACKAGE = "rebmix")
if (output$error == 1) {
stop("in RdensKNearestNeighbourXY!", call. = FALSE); return(NA)
}
i <- !duplicated(data.frame(output$x, output$y))
output$x <- output$x[i]
output$y <- output$y[i]
output$z <- output$z[i]
n <- length(output$z)
if (n > npts) {
i <- sample.int(n, npts, replace = FALSE, prob = NULL)
output$x <- output$x[i]
output$y <- output$y[i]
output$z <- output$z[i]
}
rm(list = ls()[!(ls() %in% c("output"))])
return(output)
} ## .densKNearestNeighbour.xy
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.