Skip to content

suggest: align on a character #139

@r2evans

Description

@r2evans

Nice presentation at rstudio::conf2019.

Is it possible to align by decimal point (period or comma, by locale)? That is, your output rendered something like the left, where it might be nice to see it aligned as on the right:

          raw        dot_align
10.234 x 10^1    10.234 x 10^1
 1.234 x 10^2     1.234 x 10^2
        2.222     2.222       
 1.234 x 10^3     1.234 x 10^3

It might be nice to generalize a little so that we may align on, say, =:

  right_align             char_align
  x = 3.14159            x = 3.14159   
another_x = 7    another_x = 7 

This might be something like cols_align(align=".") or cols_align(align="=").

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions