Add detection of text missing values in validation_report()#242
Merged
Conversation
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Feature: check for spaces and "NA" in
Add detection of text missing values in validation_report()
May 28, 2025
validation_report()
Member
|
@copilot - tried submitting this package to CRAN, but returned the following issues in the incoming checks: Please remove the offending links from the above so that we can pass the checks. |
Co-authored-by: martinctc <17925865+martinctc@users.noreply.github.com>
Contributor
Author
... I've fixed the invalid URLs flagged by the CRAN checks in commit d0b620b:
These changes should resolve the reported issues with the invalid URLs. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Member
|
package wpa_1.9.2.tar.gz is on its way to CRAN - merging now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enhances the
validation_report()function to detect and report on text strings that likely represent missing values but aren't actualNAvalues in R.This PR also bumps versions to
v1.9.2and is submitted to CRAN.Changes:
na_valuesparameter tohrvar_count_all()function with default valuec("NA", "N/A", "#N/A", " ")is.na())na_valuesparameter tovalidation_report()so it can be customized when calling the report functionExample:
When data contains text strings like "NA" or "N/A" in HR attributes, the validation report will now include a message like:
These values are now also properly counted in the missing values percentage calculations.
Fixes #35.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.