pharmaverse / pharmaverse/rtables
Bug: `table_shell()` does not hide column counts
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 260
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
The (N=...) values remain visible in the rendered shell even though the shell should suppress them:
tbl <- basic_table(show_colcounts = TRUE) |>
split_cols_by("ARM") |>
analyze("AGE") |>
build_table(DM)
tbl
A: Drug X B: Placebo C: Combination
(N=121) (N=106) (N=129)
——————————————————————————————————————————————
Mean 34.91 33.02 34.57
table_shell(tbl)
A: Drug X B: Placebo C: Combination
(N=121) (N=106) (N=129)
——————————————————————————————————————————————
Mean xx.xx xx.xx xx.xx
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 at the table_shell(tbl) entry point and reproduce the example using basic_table(show_colcounts = TRUE), split_cols_by("ARM"), analyze("AGE"), and build_table(DM). Trace how the shell renders the column headers, then verify that the rendered output omits the (N=...) counts while retaining the headers and masked values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100