Skip to contents

Logged subsetting

The method every DT[i, j, by] call goes through.

`[`(<data.table>)
Subset, aggregate and update a data.table, with a log

Logged ‘data.table’ functions

Wrappers around the functions ‘data.table’ exports. Each one prints a message and then dispatches to the ‘data.table’ implementation.

as.data.table()
Convert an object to a data table, with a log
merge(<data.table>)
Merge two data tables, with a log
melt() dcast()
Reshape a data table, with a log
unique(<data.table>) duplicated(<data.table>) na.omit(<data.table>) rbindlist() funion() fintersect() fsetdiff()
Row operations with a log
setnames() setcolorder() setkey() setkeyv() setorder() setorderv() setindex() setindexv() set() setDT() setDF() setattr()
Modify a data table by reference, with a log
head(<data.table>) tail(<data.table>)
First or last rows of a data table, with a log
fread()
Read a file into a data table, with a log
fwrite()
Write a data table to a file, with a log

Describing a table

dttable()
Describe the variables of a data table
dtlog_summary()
Log a summary of a data table

Transcripts and control

dt_log() dt_log_end() dt_log_file()
Write the code and its log to a text file
dtlog_pause() dtlog_resume()
Pause and resume logging

Package

dtlog dtlog-package
dtlog: logging for data.table operations