Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Check for missing values. #7

Open
davharris opened this issue Mar 31, 2014 · 3 comments
Open

Check for missing values. #7

davharris opened this issue Mar 31, 2014 · 3 comments

Comments

@davharris
Copy link
Contributor

I'm thinking that this would probably be a pretty simple function. By default, it would just return things that were clearly missing (e.g. NA), but it could also (optionally) warn if there were -999s or other common outlier codes.

I'm happy to take this on if nobody else wants it.

Thoughts?

@karthik
Copy link
Owner

karthik commented Mar 31, 2014

Sure, take it!

@davharris
Copy link
Contributor Author

Cool. Prototype here. https://github.com/davharris/testdat/blob/master/R/test_NA

Currently outputs a data.frame that identifies the rows and columns with possible NAs, along with the value that triggered inclusion.

> test_NA(dat)
Now checking 2 columns...
  row col   value
1   2   1 missing
2  10   1    <NA>
3   3   2    <NA>

I can make it more robust this afternoon, or change the inputs/outputs as the group suggests.

@karthik
Copy link
Owner

karthik commented Mar 31, 2014

Mind sending a pull request?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants