Skip to content

Support columns of values that use units (from the units R package) #417

@scotbader8858

Description

@scotbader8858

The units R package (https://github.com/r-quantities/units) supports vectors that have units attached. When in a table, and introduced to gt, these values have their units well-defined (separately as numerator and denominator) and they can be mixed_units (where each element should be checked for their units).

It would be really cool if gt could take advantage of these attached units and display them with nice typography. I guess the package could automatically format a column with units or there could be a specialized formatter function that would have to be used to force the formatting to occur. Either way, this would be really great.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions