gt icon indicating copy to clipboard operation
gt copied to clipboard

`cols_align_decimal()` does not work for scientific numbers

Open retodomax opened this issue 1 year ago • 0 comments

When I apply cols_align_decimal() to a column that was formated using fmt_scientific(), the decimal point is not aligned (for rows where the power of 10 part is missing).

Reprex:

library(gt)
exibble["num"] |>
  gt() |>
  fmt_scientific() |>
  cols_align_decimal()

image

retodomax avatar May 21 '24 13:05 retodomax