-
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
Bug: derive_param_computed() does nothing #2510
Comments
Hi @yurovska , thanks for creating this issue. Setting |
But it will also add new observations even in those cases when the parameter could not be derived due to missing source parameters at certain visits or their blank AVAL values. I do not need that.
|
That's correct. In this case you need to remove the undesired records afterwards, e.g., by adding |
Thanks @bundfussr. Of course I have already done it in my code but it's more like a workaround. I would still consider this an unexpected behaviour of the function. |
I see. Maybe we should describe it clearer in the details section. We could also extend the @pharmaverse/admiral , what do you think? |
That's fair. However, I'm afraid I'm too new to R, just started with it a month ago. But of course I will be more than happy to contribute at some point when I gain more experience. For the time being, bug reporting itself is my contribution. |
All good! Can we put you on as a reviewer once the update is completed? |
Not sure what exactly it means and what I would be in change of as a reviewer, but why not :) |
Code Review/Pull Request Review is the coolest part of how we work in admiral. We need to discuss this update a little more internally at our next meeting, but once we arrive at the details someone will implement the change. You and another person will review that change and see if it meets the criteria laid out in the issue/request for change. This is a great example, but not going to be as in-depth as this change. #2503 |
What happened?
I'm using
derive_param_computed()
to derive a new parameter from other two. I also would like to keep a few variables from one of them. In the example below I take ADTM, ATMF, ADT, ADTF and ADY from "WSTCIR" parameter because it's visit-based whereas "HGHT" is measured only once at screening. I expect those variables to have the same values in the derived parameter. And it works fine unless any of those variables is equal to NA for all observations. In the current data there were no date imputations, so ADTF is NA everywhere. If I try to keep this variable inset_values_to
then the function simply does nothing, with no errors, it just returns the input data frame with no new observations added at all. If I comment that line out then it works as expected.Session Information
No response
Reproducible Example
The text was updated successfully, but these errors were encountered: