Closed patrickbarks closed 4 years ago
Great, thanks for the review! I've made all the changes you recommended, plus some minor changes to the internal code documentation. I also made a minor change to the example for clean_variable_spelling()
, such that the possible values for my lab_result_
columns are c('High', 'Normal', 'Inconclusive')
rather than c('Positive', 'Negative', 'Inconclusive')
. The mix of positive and negative results for a given patient was bothering me :)
Also, I just realized that I mistakenly referred to clean_spelling_vars()
in the PR title rather than clean_variable_spelling()
. Sorry about that!
Great, thanks for the review! I've made all the changes you recommended, plus some minor changes to the internal code documentation. I also made a minor change to the example for
clean_variable_spelling()
, such that the possible values for mylab_result_
columns arec('High', 'Normal', 'Inconclusive')
rather thanc('Positive', 'Negative', 'Inconclusive')
. The mix of positive and negative results for a given patient was bothering me :)
Great! I'll have a look at the changes today. I'm fine with how you changed the examples (though I'm not as bothered by a mix of positive and negative test results assuming the tests are different).
Also, I just realized that I mistakenly referred to
clean_spelling_vars()
in the PR title rather thanclean_variable_spelling()
. Sorry about that!
No worries! FWIW, there should be a little "edit" button that you can use to update/fix your comment.
Looks good to me! One more thing before you merge: would you mind adding your name to the authors line in the function documentation?
Thank you!
Implements a
.regex
keyword inclean_spelling_vars()
, per #40. For example, the wordlist variable".regex ^lab_result_"
will match any column name beginning with "labresult". Any variable in the wordlist without a.regex
keyword (or.global
) will be matched literally, as in the current behaviour.Simple example:
Created on 2019-10-15 by the reprex package (v0.3.0)
I've also added some corresponding documentation and tests. Happy to make edits to the PR if you have suggestions/requests.