Export data.table:::uniqlist for external use

Open
#900 3 comments 0 reactions 1 assignee View on GitHub

@jangorecki is already working on this.

Since Apr 10, 2020.

Assessment

This issue has not been assessed yet.

Description

feature request

uniqlist is useful to detect whether there's a change in value in an R's data frame. (For example, check if a variable change values in time series data.)

See this StackOverflow question, which shows that there's no readable alternative to uniqlist

x = data.frame(cnt=1:10, code=rep('ELEMENT 1',10), val0=rep(5,10),  val1=rep(6,10),val2=rep(3,10))
x[4,]$val0=6

data.table:::uniqlist(x[, 3:5])
# [1] 1 4 5
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.