exibble |>
dplyr::select(num) |>
gt() |>
fmt_bytes(columns = num)| num |
|---|
| 0 B |
| 2 B |
| 33 B |
| 444 B |
| 5.5 kB |
| NA |
| 777 kB |
| 8.9 MB |
fmt_bytes() functionUse exibble to create a gt table. Format the num column to have byte sizes in the decimal standard.
| num |
|---|
| 0 B |
| 2 B |
| 33 B |
| 444 B |
| 5.5 kB |
| NA |
| 777 kB |
| 8.9 MB |
Create a similar table with the fmt_bytes() function, this time showing byte sizes as binary values.