azizka / sampbias

Sampbias is a method and tool to 1) visualize the distribution of occurrence records and species in any user-provided dataset, 2) quantify the biasing effect of geographic features related to human accessibility, such as proximity to cities, rivers or roads, and 3) create publication-level graphs of these biasing effects in space.
32 stars 8 forks source link

cannot derive coordinates from non-numeric matrix #14

Open HannahRH98 opened 1 year ago

HannahRH98 commented 1 year ago

My input data is the output of the R package Coordinate Cleaner. Majority of species occurance data has worked in SampBias, but a handful get the following error:

Creating occurrence raster... Adjusting to terrestrial surface... Calculating distance raster... Error in .local(obj, ...) : cannot derive coordinates from non-numeric matrix

From my understanding, it is telling me that the coordinates are not in a numeric format. However, when I check using, class(example.in$decimalLatitude), it shows as being numeric.

Any idea what is going on?

H.

matheusista commented 1 year ago

Same problem here :c

BrunoVilela commented 8 months ago

Hello there! We've recently overhauled the Sampbias package, integrating new spatial packages and implementing substantial changes to the code. If you're still encountering the issue after updating the package to the latest version available on GitHub, could you please share a reproducible code along with the accompanying data? This will enable us to investigate the error more effectively and provide you with a timely resolution. Your cooperation is greatly appreciated!