writeDataTableSplitByColumn {LOLA} | R Documentation

## 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.

### 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

    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

[Package LOLA version 1.22.0 Index]