Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Minimal reproducible example
x = as.data.table(iris) x[["foo"]] = 1:150 unique(x, by = "Species")
Tested with v11.4 and latest dev version.
Output of sessionInfo()