Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[R-Forge #5582] When DT is empty, unique(DT, by=key(DT)) returns a data.table with one row, all NAs #28

@arunsrinivasan

Description

@arunsrinivasan

Submitted by: shubh bansal; Assigned to: Arun ; R-Forge link

dt=data.table(a=character(0), b=numeric(0), key='a')
unique(dt)
#     a  b
#1: NA NA

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions