Skip to content

fintersect() does not preserve order #4716

@mllg

Description

@mllg
x1 = c("b", "c", "a")
x2 = c("a", "c")

intersect(x1, x2)
fintersect(data.table(x = x1), data.table(x = x2))$x

The result is ordered according to the 2nd argument while R's intersect() preserves the order of the first argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions