'to' must be a finite number, error analysing recorder metrics

Hi everyone!

I'm working on analysing recorder metrics based of the 2020 August paper (https://www.nature.com/articles/s41598-020-67658-3) but using my own data (looking at roadkill stats). When running this line:
metrics_axes_roadkill <- predictAxes(data = df_proj_splat,
recorders = unique(df_proj_splat$recorder)[1:10])

I keep getting this error message:
Calculating recorder metrics...
|======== | 10%Error in seq.int(0, to0 - from, by) : 'to' must be a finite number

There's a fair few NAs in my data, and the date column has been formatted via:

complete.cases(proj_splat$date)
df_proj_splat<- proj_splat[complete.cases(proj_splat$date),]

Any ideas on how to solve this? Any advice would be greatly appreciated!

2021-04-29T23:00:00Z

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.