tables {data.table} | R Documentation |
Outputs one line per data.table providing name, number of rows, and column names.
tables(mb = FALSE, order.col = "NAME", width = 80)
mb |
TRUE adds size of the data.table in MB to the output. Calls object.size so can be very slow |
order.col |
Quoted column name to sort the output by |
width |
Number of characters to truncate the COLS output |
A data.table containing the information printed.
Matt Dowle
ls
, objects
, object.size
~~~
DT = data.table(A=1:10,B=letters[1:10]) DT2 = data.table(A=1:10000,ColB=10000:1) tables()