if (FALSE) {
old_occurrences = gecko.data("records")
colnames(old_occurrences) = c("species", "long", "lat")
new_occurrences = data.frame(
species = rep(c("Hogna maderiana", "Malthonica oceanica", "Agroeca inopina"), each = 50),
long = c(runif(50, -17.1, -16.09), runif(50, -8.8, -7), runif(50, -6, -2)),
lat = c(runif(50, 32.73, 32.76), runif(50, 39.5, 40), runif(50, 40, 42))
)
outliers.detect.mass(new_occurrences, train = old_occurrences, path = path)
}
Run the code above in your browser using DataLab