# \donttest{
danube <- system.file('extdata/danube.shp.zip', package='specleanr')
db <- sf::st_read(danube, quiet=TRUE)
wcd <- terra::rast(system.file('extdata/worldclim.tiff', package = "specleanr"))
preddata <- pred_extract(data = efidata, raster = wcd,
lat = 'decimalLatitude', lon = 'decimalLongitude',
colsp = 'scientificName',
list = TRUE,verbose = FALSE,
minpts = 6,merge = FALSE)#'basin removed
#outlier detection
outliersdf <- multidetect(data = preddata, multiple = TRUE,
var = 'bio6',
output = 'outlier',
exclude = c('x','y'),
methods = c('zscore', 'adjbox','iqr', 'semiqr','hampel', 'kmeans',
'logboxplot', 'lof','iforest', 'mahal', 'seqfences'))
multbm <- multibestmethod(x = outliersdf, threshold = 0.2)#
# }
Run the code above in your browser using DataLab