Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in findInterval(x$log_discharge, break_pts) : 'vec' must be sorted non-decreasingly and not contain NAs #161

Open
dcallen opened this issue Nov 15, 2018 · 5 comments

Comments

@dcallen
Copy link

dcallen commented Nov 15, 2018

Hi there ... I think I am getting the same issue as this one that was has been closed: #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
test1.txt
test3.txt

@dblodgett-usgs
Copy link
Collaborator

Thanks for the report @dcallen -- I'll look into this tomorrow or next week.

How did you install EflowStats? Want to make sure you have the latest code with that fix in place?

@dcallen
Copy link
Author

dcallen commented Nov 15, 2018 via email

@dblodgett-usgs
Copy link
Collaborator

Can you try:
devtools::install_github("USGS-R/EflowStats") ? I'm not 100% sure the fix made it to GRAN.

@dcallen
Copy link
Author

dcallen commented Nov 15, 2018 via email

@dblodgett-usgs
Copy link
Collaborator

Sure. Send the files along. -- you can zip and post to an issue directly on github if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants