Nothing
impute.missing.data <-
function(x)
{
## require(RANN)
idx.data <- which(!is.na(x))
idx.na <- which(is.na(x))
tmp <- nn2(data=cbind(idx.data), query=cbind(idx.na), k=6) ## k-nearest neighbor
idx.nn <- idx.data[tmp$nn.idx]
x[idx.na] <- rowMeans(matrix(x[idx.nn],nrow=length(idx.na)))
return(x)
}
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.