setops-data.frame

0th

Percentile

Set operations for data frames.

These set operations are implemented with an efficeint C++ backend.

Usage
# S3 method for data.frame
intersect(x, y, ...)

# S3 method for data.frame union(x, y, ...)

# S3 method for data.frame setdiff(x, y, ...)

# S3 method for data.frame setequal(x, y, ...)

Arguments
x,y
Two data frames to compare, igoring order of row and columns
...
Needed for compatibility with generic. Otherwise ignored.
Aliases
  • intersect.data.frame
  • setdiff.data.frame
  • setequal.data.frame
  • setops-data.frame
  • union.data.frame
Examples
mtcars$model <- rownames(mtcars)
first <- mtcars[1:20, ]
second <- mtcars[10:32, ]

intersect(first, second)
union(first, second)
setdiff(first, second)
setdiff(second, first)

setequal(mtcars, mtcars[32:1, ])
Documentation reproduced from package dplyr, version 0.1.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.