-
Notifications
You must be signed in to change notification settings - Fork 28
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
Repeated zeros truncated in added header row #239
Comments
Have you tried playing with |
My guess is that it's treating the numbers as separate and then number_format is truncating the zeros. This is a legit bug, I guess? but at the same time recognising what is a single number is very difficult and the regex we use is already hideous. I'm not sure that going further down this path will be helpful. |
Ohhh, I didn't realize huxtable was formatting numbers like this. If I am not relying on huxtable to implement any formatting/rounding, do you recommend I add this to the end of all my series of huxtable calls? (I would add this internally in gtsummary) ht |>
huxtable::set_number_format(NA) |
Yes, that’s a sensible approach for sure.
On Thu, 16 Mar 2023 at 13:13, Daniel Sjoberg ***@***.***> wrote:
Ohhh, I didn't realize huxtable was formatting numbers like this.
If I am not relying on huxtable to implement any formatting/rounding, do
you recommend I add this to the end of all my series of huxtable calls? (I
would add this internally in gtsummary)
ht |>
huxtable::set_number_format(NA)
—
Reply to this email directly, view it on GitHub
<#239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMMT5ZNLQWQMSQBDFWFLODW4MGXNANCNFSM6AAAAAAV4MPDHU>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Sent from Gmail Mobile
|
Hello!
I add a header row with the
insert_row()
function. When the header has repeated zeros, some are removed. In the example below, the header should read"**N = 1,000**"
, but is printing as**N = 1,0**
.Thank you 🍁
The text was updated successfully, but these errors were encountered: