splitDataTable: Splits a data.table object into a list of data.tables based...

View source: R/FUSED.R

splitDataTableR Documentation

Splits a data.table object into a list of data.tables based on an individual column. Returns a list of data.tables if column to split is present, otherwise returns NULL.

Description

Splits a data.table object into a list of data.tables based on an individual column. Returns a list of data.tables if column to split is present, otherwise returns NULL.

Usage

splitDataTable(DT, split_factor)

Arguments

DT

A data.table object.

split_factor

A column name in DT to use as a factor to split and name list elements. Can be a character vector or an integer.

Value

A list of data.tables.


databio/FUSED documentation built on May 13, 2022, 8:10 p.m.