Display 'data.table' metadata
Convenience function for concisely summarizing some metadata of all data.tables in memory (or an optionally specified environment).
tables(mb=TRUE, order.col="NAME", width=80,
env=parent.frame(), silent=FALSE, index=FALSE)mb |
|
order.col |
Column name ( |
width |
|
env |
An |
silent |
|
index |
|
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; in such a scenario, simply set it to .GlobalEnv to get the same behaviour as at prompt.
Note that on older versions of R, object.size may be slow, so setting mb=FALSE may speed up execution of tables significantly.
Setting silent=TRUE prints nothing; the metadata are returned as a data.table, invisibly, whether silent is TRUE or FALSE.
A data.table containing the information printed.
DT = data.table(A=1:10, B=letters[1:10]) DT2 = data.table(A=1:10000, ColB=10000:1) setkey(DT,B) tables()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.