Skip to content

split.data.table method #1389

@arunsrinivasan

Description

@arunsrinivasan

Need a split.data.table method.

  • split by factor the same as split.data.frame - f argument.
  • split by reference to column names as character vector - by argument.
  • allow to produce empty elements in list, same as split.data.frame for drop=FALSE
  • allow to keep or drop field on which we split - drop argument.
  • support recursive split into nested lists for length(by) > 2L.
  • support keyby argument returning sorted but unkeyed list(s), but data.tables on leafs would be keyed, unless drop=TRUE.
  • update this SO post after.

@arunsrinivasan I've edited your post, feel free to correct/extend that list.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions