-
Notifications
You must be signed in to change notification settings - Fork 207
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
How to align both header and data? #380
Comments
looking ... |
I think you just want
|
I want to right-align only "number" columns (i, f), not "text" columns (s). |
D'oh. |
Yes I had imagined this some while back but wasn't sure if there were sufficient demand. Now that there are two of us who have thought of this ... probably rises to the level of being worth coding up. ;) |
Thanks. By the way, on second thought, instead of |
Workaround: $ echo "s,i,f\na,1,1.1\nbb,22,22.22" | mlr --c2t format-values -f '%.2lf' | column -t -s $'\t' -R 3
s i f
a 1 1.10
bb 22 22.22 |
One more interested! I got here also looking on how to right-align only some of the columns in a pprint output. Some kind of "alignment specification" would be good. The "ralign" proposal seems good, but I want to add something:
|
+1 |
For example:
But what I want is that both header and data has same alignment:
It would be great if there is
ralign
verb to right-align specific fields, e.g.mlr --c2p ralign -f i,f
.The text was updated successfully, but these errors were encountered: