You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desired records could be filtered during post-processing, but is there an option to create only those by groups, which are actually available in the dataset?
Thanks, @om9391 - I can think of a couple different workarounds for this (like you could pre-process by concatenating visits and PARAMCD together then post process to separate it), but that's clearly not ideal.
You're right that right now it's basically a cartesian join. @elimillera uses dplyr::complete() with the by variables to populate everything. As far as implementing, I can also see use cases for it being more than just data driven. For example, you might want to provide a mock-up of appropriate visits as dictated by the protocol. So this changes the framework for how row labels are generally created.
The other thought here is that the target variable might need to be treated differently. For example, in this case you want normal/abnormal taken from the factor levels and applied to each result, but you'd want VISIT restricted by PARAMCD. So I'm thinking that by variables should be treated independently of the target variables - but I want to make sure that's intuitive.
@om9391 do you have suggestions of how you'd like the syntax itself to feel?
Description
Desired records could be filtered during post-processing, but is there an option to create only those by groups, which are actually available in the dataset?
Steps to Reproduce (Bug Report Only)
Expected behavior: [What you expected to happen]
For PARAM = 'Head' records created only for 'Screening' but not for 'Day -1' and 'Day 5'.
Actual behavior: [What actually happened]
Cartesian product of visits and params
The text was updated successfully, but these errors were encountered: