Learn R Programming

R2DT (version 0.2)

Translation of Base R-Like Functions for 'data.table' Objects

Description

Some heavily used base R functions are reconstructed to also be compliant to data.table objects. Also, some general helper functions that could be of interest for working with data.table objects are included.

Copy Link

Version

Install

install.packages('R2DT')

Monthly Downloads

206

Version

0.2

License

GPL-3

Maintainer

Robin Oirbeek

Last Published

March 19th, 2020

Functions in R2DT (0.2)

extractLevelDT

Extracting the levels of all or a selected set of the factor columns of a data.table object
isFactorDT

Testing if a set of columns of a data.table object corresponds to the factor data type
lowFreqLevel2MissingDT

Transform levels of all the factor columns of a data.table object to missing if too little observations pertain to a given level of it.
checkDT

Checking if an object is a data.table object and (optional) testing if some column names are valid for it
setRefLevelDT

Setting the reference level of all or a selected set of the factor columns of a data.table object
removeEmptyLevelsDT

Remove empty levels from all the factor columns of a data.table object
asNumericDT

Forcing the numeric data type on a selected set of columns of a data.table object
rbindDT

Glueing, not merging, two data.table objects together, by matching column names
isNumericDT

Testing if a set of columns of a data.table object corresponds to the numeric data type
isIntegerDT

Testing if a set of columns of a data.table object corresponds to the integer data type
isLogicalDT

Testing if a set of columns of a data.table object corresponds to the logical/boolean data type
sortByRowIndexDT

Order the rows of a data.table object by index
detectWeirdLevelNamesDT

Detecting which levels of which factor of a data.table object contain non-alpha numeric characters (including whitespace) characters
extractRefLevelDT

Extracting the reference level of all or a selected set of the factor columns of a data.table object
isCharacterDT

Testing if a set of columns of a data.table object corresponds to the character/string data type
asCharacterDT

Forcing the character/string data type on a selected set of columns of a data.table object
asFactorDT

Forcing the character/string data type on a selected set of columns of a data.table object
asLogicalDT

Forcing the logical/boolean data type on a selected set of columns of a data.table object
asIntegerDT

Forcing the integer data type on a selected set of columns of a data.table object