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

Code duplication between test_NA and fix_NA #27

Open
davharris opened this issue Apr 5, 2014 · 2 comments
Open

Code duplication between test_NA and fix_NA #27

davharris opened this issue Apr 5, 2014 · 2 comments

Comments

@davharris
Copy link
Contributor

There's a lot of duplication between the code in test_NA and fix_NA. For example, both functions have lists of NA strings like -999, and it would be easy for these to get out of sync.

What do folks (especially @hilaryparker) think of this division of labor between the functions:

  • test_NA finds the missing values
  • fix_NA calls test_NA to find where the missing values are, and then replaces them.

If I get the go-ahead, I'm happy to make a pull request for it.

@karthik
Copy link
Owner

karthik commented Apr 5, 2014

Hi @davharris

Thanks for the note. There is quite likely a lot of code overlap between the test and fix functions. I haven't worried about rebasing code yet, since it feels a bit premature for that. Once all the functions for the first round of tests are complete, it might be worth doing this then.

That said, feel free to go ahead and submit a pull request. Much appreciated. I just can't work on it for another week since there is still hackathon stuff to finish and also a big proposal due next week.

Cheers

@hilaryparker
Copy link

Hey @davharris, that sounds like a great idea! Makes it much easier since I was updating both functions at once when adding new NA examples, etc.

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

3 participants