writeDataTableSplitByColumn: Given a data table and a factor variable to split on,...

Description Usage Arguments Value

View source: R/postEnrichment.R

Description

Given a data table and a factor variable to split on, efficiently divides the table and then writes the different splits to separate files, named with filePrepend and numbered according to split.

Usage

1
2
3
4
5
6
writeDataTableSplitByColumn(
  DT,
  splitFactor,
  filePrepend = "",
  orderColumn = NULL
)

Arguments

DT

data.table to split

splitFactor

column of DT to split on

filePrepend

notation string to prepend to output files

orderColumn

column of DT to order on (defaults to the first column)

Value

number of splits written


nsheff/LOLA documentation built on Sept. 8, 2020, 11:50 a.m.