clean up extraneous tibble output
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 171
- Forks
- 26
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 3
Description
The current summary output looks like this:
> fit_hmc$summary(c("mu", "tau"))
# A tibble: 2 x 10
variable mean median sd mad q5 q95 rhat ess_bulk ess_tail
<chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 mu -0.0825 -0.0771 0.0140 0.0158 -0.101 -0.0665 1.97 2.03 18.1
2 tau 8.22 8.15 0.269 0.325 7.88 8.64 2.12 1.87 12.4
It also prints negative numbers in red. I can remove the red negative numbers with a global option:
> options(pillar.neg = FALSE)
I haven't been able to see how to get rid of the other output I consider to be extraneous:
- the line saying it's a tibble (
# A tibble: 2 x 10) - the line providing types: (
<chr> <dbl> ...) - row numbers (
1formu,2fortau)
P.S. This is low priority, especially if it's a huge pain to provide alternative tibble output.
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
The entry point mentioned is fit_hmc$summary(c("mu", "tau")); trace that summary method to see where the tibble is produced and how printing is delegated. Reproduce the shown output and define tests for omitting the tibble header, type row, row numbers, and optionally negative-number coloring; done means the requested summary display is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100