-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
In print.data.table
when setting col.names='none'
I expected column widths to be sized according to their contents. Instead, the column widths are unchanged. Incidentally, when class is suppressed the column widths are different. I expect the behavior to be consistent between those two options.
library(data.table)
dt<-data.table(x=3:1,sillylongcolumnname=1:3)
print(dt)
#> x sillylongcolumnname
#> <int> <int>
#> 1: 3 1
#> 2: 2 2
#> 3: 1 3
print(dt,col.names='none')
#> Warning: Column classes will be suppressed when col.names is 'none'
#> 1: 3 1
#> 2: 2 2
#> 3: 1 3
Created on 2025-03-24 with reprex v2.1.0
MichaelChirico, tdhock and r2evans