#' Filter records by pixel
#'
#' @param data
#' @param raster
#'
#' @return
#' @export
#'
#' @examples
pixel_filtering <- function(data,
raster){
samplecellID <- raster::cellFromXY(raster,
data[ , c("Longitude", "Latitude")])
dup <- duplicated(samplecellID)
data <- data[!dup, ]
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.