[R-Forge #1458] Add fast insert() function

Open
#660 11 comments 4 reactions 1 assignee View on GitHub

@ben-schwen is already working on this.

Since Jul 3, 2026.

Assessment

This issue has not been assessed yet.

Description

feature request

Submitted by: Matt Dowle; Assigned to: Nobody; R-Forge link

insert(DT, list(...))
and
insert(DT, ...)

This would grow DT, and memcpy the value in.
Possibly, even respecting keys, and doing a memmove to make space.

Related, tables() could report length and truelength separately. There could be an allocate(DT,n) function which increases truelength but not the length (allowing many quick insert()s if user knows that is about to happen).

Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.