intersection: Multiple intersection function

Description Usage Arguments Value Examples

View source: R/utils.rjbg.R

Description

Performs intersection across all the supplied arguments.

Usage

1
  intersection(x, y, ...)

Arguments

x

A vector containing a sequence of items (conceptually with no duplicated values).

y

A vector of the same mode as x.

...

Further vectors of the same mode as x.

Value

A vector of the same mode as x and y.

Examples

1
2
3
4
5
x <- c(1, 2, 4, 5)
y <- c(2, 3, 4)
intersection(x, y)
z <- c(5, 4, 3)
intersection(x, y, z)

rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.