ropensci / CoordinateCleaner

Automated flagging of common spatial and temporal errors in biological and palaeontological collection data, for the use in conservation, ecology and palaeontology.

Home Page:https://docs.ropensci.org/CoordinateCleaner/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoordinateCleaner error

jivelasquezt opened this issue · comments

Function clean_coordinates fails with the following error:

Error in ras_dist(x = k, lat = lat, lon = lon, ras = ras, weights = TRUE): object 'ras' not found

Code:

CoordinateCleaner::clean_coordinates(sp.data,
                                                                      lon="decimalLongitude",
                                                                      lat="decimalLatitude",
                                                                      species="species",
                                                                      countries = "countryCode",
                                                                      value="clean",
                                                                      tests=c("capitals","centroids", "equal", "gbif","institutions", "outliers", "seas","zeros"))

OK, could you please provide an example of the input data to reproduce the error? Thanks!