-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update documentation to include metatools select function #43
Comments
I don't know if this is something you still want implementing? But I'd be happy to give this one a go. |
@atorus-research/xportr-development-team what do folks think? It would probably be similar to |
I think it would be helpful to have a function that selects variables. I like the message from metatools::drop_unspec_vars that lists the dropped variables, and I suggest having a similar message. I am also interested in having a message that lists the variables in metadata that are not in the dataframe to check if we forgot to derive some variables. This message might be optional, in case the input metadata is a metadata repository instead of specification, the number of variables in MDR is greater than the one in dataframe. |
It looks like @sophie-gem is going to take this on! Thanks!! |
Hi, apologies if I have misunderstood (or if this has already been addressed in a feature branch) but was wondering - should the description of |
The Roxygen header will be updated to ensure consistency across all functions. Please refer to the Style Guide for Roxygen Headers in the wiki for more details. https://github.com/atorus-research/xportr/wiki/Style-Guide-for-Roxygen-Headers |
Hi @sophie-gem I was wondering if you had an questions or need any support on this issue? We have been meeting Tuesday and Thursday 11:30 US EST time to discuss xportr. Would you like to come? |
Hi @bms63, yes please - that would be great. It'll be useful to hear where you are heading with this so I can make the function consistent. |
…coding the function. Added option `xportr.select_verbose = "none"` within the `.onLoad()` function.
ACtually should be 'A character value to subset the |
Also, are you wanting the tests for |
I have a preference for the first option, I find it more readible. Would it be also possible to list the variables present in metadata but not in data. I often forget some variables and it would be very helpful to have a list of remaining variables to derive |
Regarding your second point, I have implemented it so that depending on |
Great! It's good to hear that the implementation is already done. I took a look, and it seems to be ok. |
Update documentation in xportr to point at metatools::drop_unspec_vars for this functionality. |
Has the plan changed with this then? The function has pretty much been completed and just needed tests writing...but am happy to delete all that if the plan is to use |
Hi @sophie-gem yes the planned changed - apologies. There was some discussion on writing a function for keys and sorting, but metatools also has this function available and we decided to not duplicate in xportr. The same goes for this select function. We just want to update the vignette now to have information and an example on using this function |
Awesome, no problem - I'll probably drop the current branch and start a new one. Unless anyone can think of a better way of approaching this? |
@sophie-gem that seems reasonable to me! fresh branch! |
What do you guys reckon? In the 'Getting Started Vignette' would it be worth: (a) applying Let me know your thoughts. |
Could we try out option b and see how it looks?? |
I'm sorry, I don't think I'm going to be able to fit in the creation of an article explaining the potential use of I anticipate being able to finish the |
All good @sophie-gem !! @atorus-research/xportr-development-team anyone looking for documentation updates!! Showing how the packages can potentially interact I think is a big win!! |
It would be great to have a wrapper around the
dplyr::select
to subset the dataset down to what is in the spec and give a message on what has been selected and what has been dropped. This could just be numbers of variables selected/dropped and which ones were dropped.right now i do:
but i would like:
The text was updated successfully, but these errors were encountered: