-
Notifications
You must be signed in to change notification settings - Fork 63
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
Documentation: unable to derive a new variable using derive_param_computed() when source variable is NA #2338
Comments
Hi @w316liu. Many thanks for the bug report!! I was testing this using admiral 1.0.1 and cannot re-create this bug. Are you able to upgrade to latest admiral? |
Hi @bms63 , I upgraded to admiral 1.0.1. Here is the new R session info. below is the full result of re-running the sample code.
|
Hi @w316liu , for such use cases the |
Thanks @bundfussr !!1 Wondering if we should make this more prominent for users? The documentation is already quite extensive and might get lost in it...but what do you think? @w316liu is there some way we could of made this more prominent for you? |
Looking at gt package is interesting for possible solution. looks a little manual, but could add some value https://gt.rstudio.com/reference/sub_small_vals.html |
@bms63 , the links are interesting but I don't understand how they could solve this issue. |
I was thinking the way gt does it could help break up the wall of code and comments. right now when I look at the examples it is just a huge drop of information. Perhaps we could break up the examples with images that have Example 1, Example 2, etc...this way they could be standardized and used across other examples |
I see. Good idea! We could put each example into a separate subsection. Maybe it is added to the TOC then. |
Thank you @bundfussr for your help. Turning on keep_nas solved my problem. Adding an example is a good idea. Thank you both. |
@pharmaverse/admiral @pharmaverse/admiral_comm Hi all - Please see above discussion. Anyone interested in exploring possibilities on how to present examples in documentation? This would be a separate issue from this one. |
@bms63 has anyone picked this up? If not, I'd be happy to take a look at improving the presentation of examples in our function references. |
That would be amazing!! However, I think this is two separate issues. The first is about improving the documentation and examples for the NA issues for The second is about improving the overall examples for all admiral functions. I think a separate discussion thread is in order - https://github.com/pharmaverse/admiral/discussions - do you mind making one? |
Apologies if I've misunderstood - but would the first fall out of (the second) an improvement to the general structure of examples? Or do we have an obvious omission in terms of showing what happens with |
I think we should aim to improve this function's documentation as best as we can with our current toolset. The new example discussion might take a while to implement!! |
Aha, yes ok - that makes sense. Thanks for the clarification! |
HI Sophie - did this one ever get figured ou? I know we moved the bigger topic out to a discussion, but I still think we should tweak this specific documentation |
Hi Ben, so sorry I haven't got around to this yet - my bandwidth is somewhat full currently...if there is someone else who has the time to pick this up - please feel free to reassign. Otherwise, I'll pick it up as soon as I get some capacity. |
@pharmaverse/admiral @pharmaverse/admiral_comm anyone have some bandwidth to make an additional example for the above situation? The larger discussion on example presentation can be ignored as that is in a different thread now #2387 think this would take an hour @w316liu already gave a potential example! |
Happy to take this on. |
Thanks @manciniedoardo !! |
What happened?
I'd like use use derive_param_computed() to create a new parameter for a BDS ADAM (e.g. ADVS). I also wanna directly copy over some source variables to the new parameter, such as ADT, ADY, ADTF, ATMF etc. When the source variables are non-missing, this step is working fine. However, when the source variables are NA for all, the new parameter could not be created properly.
Session Information
R version 4.3.1 (2023-06-16)
admiral_0.12.2
Reproducible Example
The text was updated successfully, but these errors were encountered: