Skip to content

Validate according to the proportion of NAs in a column #363

Answered by rich-iannone
feddelegrand7 asked this question in Q&A
Discussion options

You must be logged in to vote

@feddelegrand7 for this type of validation you could use the col_vals_not_null() function (see https://rich-iannone.github.io/pointblank/reference/col_vals_not_null.html for help and examples). This checks for NAs in data frames and NULLs in database tables.

To set the failure level to 20%, use action_levels(stop_at = 0.2) for the actions argument in create_agent(). More help on this is available at https://rich-iannone.github.io/pointblank/reference/action_levels.html.

Hope this helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rich-iannone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants