tables

0th

Percentile

Display all objects of class 'data.table'

Lists all data.table's in memory, including number of rows, column names and any keys.

Keywords
data
Usage
tables(mb = TRUE, order.col = "NAME", width = 80, env=parent.frame(), silent=FALSE)
Arguments
mb

TRUE adds size of the data.table in MB to the output (slow in older versions of R).

order.col

Quoted column name to sort the output by

width

Number of characters to truncate the COLS output

env

Usually tables() is executed at the prompt where parent.frame() returns .GlobalEnv. tables() may also be useful inside functions where parent.frame() is the local scope of the function, or set it to .GlobalEnv

silent

By default tables() is expected to be called at the prompt for its compact print output. silent=TRUE prints nothing. The data statistics are returned as a data.table, silently, whether silent is TRUE or FALSE

Value

A data.table containing the information printed.

See Also

data.table, setkey, ls, objects, object.size

Aliases
  • tables
Examples
# NOT RUN {
DT = data.table(A=1:10,B=letters[1:10])
DT2 = data.table(A=1:10000,ColB=10000:1)
setkey(DT,B)
tables()
# }
Documentation reproduced from package data.table, version 1.10.4, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.