DOI-USGS / DOI-USGS/EflowStats
Error in findInterval(x$log_discharge, break_pts) : 'vec' must be sorted non-decreasingly and not contain NAs
- Dominant language
- R
- Stars
- 36
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
Hi there ... I think I am getting the same issue as this one that was has been closed: https://github.com/USGS-R/EflowStats/issues/155
I added a comment there yesterday but then thought it might be best to submit as a new issue.
I get the following error message when running calc_timingAverage() with some datafiles but not with others:
Error in findInterval(x$log_discharge, break_pts) : 'vec' must be sorted non-decreasingly and not contain NAs
I've attached a few test files that cause this error. These all have many discharge values < 1, so perhaps it is the same problem from the issue that was closed?
[test2.txt](https://github.com/USGS-R/EflowStats/files/2586416/test2.txt)
[test1.txt](https://github.com/USGS-R/EflowStats/files/2586417/test1.txt)
[test3.txt](https://github.com/USGS-R/EflowStats/files/2586418/test3.txt)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.