Description Usage Arguments Value See Also Examples
Lists all data.table's in memory, including number of rows, column names and any keys.
1 | tables(mb = TRUE, order.col = "NAME", width = 80, env=parent.frame(), silent=FALSE)
|
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 |
A data.table containing the information printed.
data.table
, setkey
, ls
, objects
, object.size
1 2 3 4 | DT = data.table(A=1:10,B=letters[1:10])
DT2 = data.table(A=1:10000,ColB=10000:1)
setkey(DT,B)
tables()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.