-
Notifications
You must be signed in to change notification settings - Fork 9
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
summarize_wqdata()
function throws with some datasets
#163
Comments
thanks @aylapear - I'll look into |
@joethorley do you remember if this is still ongoing? if so, perhaps something to examine what the dependencies are and what's worth updating in it's current format. |
The cause of this is error when all the data points are censored, specifically when the Censored = TRUE for every row.
Example to show which code is throwing error
|
This error is caused by the internal function |
It also fails on a single value
|
In these edge cases when either all values are censored or only a single value is given the function should return NA' s instead of an error. |
This would then generate this table when the site that has no data display NA's instead of throwing an error.
|
I agree - and when no data it should return a table with the same columns and classes and no rows. |
Two examples using the same EMS_ID/Station but different parameters/variables and in one case the function
summarize_wqdata()
works and provides a summary table while in the other case the table throws an errorExample where it works properly
Output
Example where it fails
Output
The text was updated successfully, but these errors were encountered: