-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feature Request: "Data Validation" functionality #37
Comments
Hi @palderman, this feature has been on my to do list for a while now (#14) but I haven't had time to look at it further. I would be more than happy to review a PR to add improved support for validating data entries. As discussed in #14 I think the
At the moment, the above code would trigger the An alternative would be to add more flexibility to
In the above example each list could have options
Once we have a format for the new Lines 260 to 286 in d2840dc
Basically all you would need to do to compare the columns defined in I think there is a way to check exactly which cell has been edited by accessing slots in Hope this helps, happy to answer any questions you may have along the way. Dillon |
Sorry for missing #14. I should have checked the existing issues more thoroughly. I was thinking of something along the lines you outlined above for an integer with hard min/max values:
Errant values in that case would be rejected, but I was also thinking of being able to warn about out-of-range values instead of rejecting them out right. In that case, supposing you have an integer that is usually between 3 and 5, but on rare occasions could possibly have values as low as 0 or high as 10, we could specify it as:
Values outside |
Looks like a good starting point. I have played around with colouring cells and it is complicated. For DataEditR to work, we need to set Perhaps you will find a way to get this to work. |
Dillon, I have a question. I'm running DataEditR:: inside shiny as I need to validate multiple databases, however col_options() has a stop(!all(colnames %in% df)) if the columns are not contained in the dataframe. Do you have any suggestions, other than rewriting the function locally, on how to deal with this issue? |
@BarqueRodrigues can you poibt me to exactly where that line exists in the code? I can take a look. Given that it is an error I probably put it there for a good reason. |
Dillon in line 47 on DataEditR::dataEditServer |
So you are using |
Hi @DillonHammill ,
I recently stumbled across your package in my search for an R solution for data entry/data capture. It seems like your package would largely fit the bill.
However, I don't see any capability for restricting the range of numerical input values as part of a "Data Validation" workflow when entering data (see e.g. https://datacarpentry.org/spreadsheet-ecology-lesson/04-quality-control/index.html for what I mean by "Data Validation"). The
col_options
argument seems mostly to address data validation for known lists of discrete values, but I see no way to restrict column type to integer or min/max values for numeric input.Did I miss this somewhere in the documentation?
Where would you suggest I begin looking in your code to add this capability? I'm happy to collaborate/contribute code for this capability as it would greatly facilitate my own workflow.
The text was updated successfully, but these errors were encountered: