pharmaverse / pharmaverse/rtables
[Feature Request]: return layout expression from qtable
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- R
- Stars
- 260
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
Feature description
If qtable can return the expression of the layout (lyt below), new users will be able to see the connection from qtable to the rtables layout framework. This would be a very nice teaching tool. For example:
t1 <- qtable(ex_adsl, col_vars = "ARM", avar = "AGE", afun = mean)
lyt <- basic_table(show_colcounts = TRUE) %>%
split_cols_by("ARM") %>%
analyze("AGE", afun = function(x) {
rcell(mean(x), format = "xx.xx", label = "AGE - mean")
})
t2 <- build_table(lyt, ex_adsl)
identical(t1, t2)
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the qtable entry point and compare its result with the basic_table, split_cols_by, analyze, and build_table example in the issue. Determine how qtable could expose its layout expression, with completion indicated by identical(t1, t2) evaluating as TRUE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100