-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_lookup_file #77
add_lookup_file #77
Conversation
This looks great! will do a demo run monday! 🤞 |
Notes:
|
Yay!
Yay!
Ah, that's a good point. Just so I understand - you mean if you duplicate the DataElement row and give it a different mapping, it will only read the first row for this Data Element? Most of the Data Elements included in the lookup will be 1:1 mappings as you say (unlike the ones the user may categorise) but it could be good to allow for multiple mappings. Do you think we should try to address that in this PR or write something in the README for now like "The lookup table assumes 1:1 mappings" and make a new GH Issue for it to address later (as an enhancement). |
#Ah, that's a good point. Just so I understand - you mean if you duplicate the DataElement row and give it a different mapping, it will only read the first row for this Data Element? Most of the Data Elements included in the lookup will be 1:1 mappings as you say (unlike the ones the user may categorise) but it could be good to allow for multiple mappings. Do you think we should try to address that in this PR or write something in the README for now like "The lookup table assumes 1:1 mappings" and make a new GH Issue for it to address later (as an enhancement).
Instead of auto classifying the variable for both domains (8,0) it asks you to classify it manually, and at the end still asks you to check the autocategorisations but looks like a bug:
If it'll be a one to one mapping anyway I think it's fine for now; but yep as you say could be an enhancement for later if you think it'd help? |
@Rainiefantasy that makes to me, we'll leave it for later then, as the point of the lookup is mostly 1:1 mappings. |
Source code looks great to me, happy with merge :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved :)
Closes #66
Closes #68
New data has been added to the package which is a lookup table for auto-categorizations
?look_up
for the manualThese auto categorisations were previously described within the domain_mapping function itself, so this chunk of code has now been deleted.
?domain_mapping
for the updated manualThe README file has been updated to reflect that there is now a 3rd input to the domain_mapping function
@Rainiefantasy in your review could you please:
domain_mapping()
to see if auto categorisations still work welldomain_mapping(,,look_up_file = 'path')
Thanks! =D