Hello,
I am searching a package to automatically validate and correct data.frames.
Before the check is started, I want to define rules together with the desired actions:
"When length of text in column 'A' < 2, then add a leading zero"
"When column 'B' is empty, then delete this row"
"When in column 'C' the value "x" is found more often then "y", then stop"
...
Best case: the rules can be imported from a file.
I came across the package "validate" (and similar ones), which seems to fullfill my validation requirements quite well, but doesn't cover the actions. Are there any?