-
-
Notifications
You must be signed in to change notification settings - Fork 22
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]: Count number of patient with percentage with row-wise denominator column by column #1355
Comments
Hi @huanlugwu, could you provide a reproducible example? Avoid screenshots as they are not easily parsable (use {reprex} ;) |
Thank you @Melkiades , so I made up these codes:
Then you should get:
What I need is that, in a row, with same ARM, the fraction of group2 is counted by using the number in group1 as denominator. I updated the example in my original post above. |
Hi @huanlugwu , many thanks for sharing this interesting use case. I agree, your approach of creating two tables is correct, and it is to cbind them. The ask was to compute the fraction following 35 by 35/74 rather than 35/68. Can you please post this question at StackOverflow with the tag nest-tern, and we will follow up there. closing this issue for now |
consider it done: https://stackoverflow.com/staging-ground/79206010 |
hi @huanlugwu , the link is broken. Thanks |
What happened?
hello guys, I am working on this demanding table to count number of patients:
can anyone shine a light on this? thx!
The text was updated successfully, but these errors were encountered: