data.table (version 1.0)

tables: Lists all objects of class 'data.table'

Description

Outputs one line per data.table providing name, number of rows, and column names.

Usage

tables(mb = FALSE, order.col = "NAME", width = 80)

Arguments

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

Value

  • A data.table containing the information printed.

See Also

ls, objects, object.size~~~

Examples

Run this code
DT = data.table(A=1:10,B=letters[1:10])
    DT2 = data.table(A=1:10000,ColB=10000:1)
    tables()

Run the code above in your browser using DataLab