typeSafeIntersect: Intersect two vectors without changing their data types.

View source: R/utilities.R

typeSafeIntersectR Documentation

Intersect two vectors without changing their data types.

Description

typeSafeIntersect preserves data types in a way that the base::intersect function does not, e.g. for Date values.

Usage

typeSafeIntersect(x, y, dedupe = FALSE)

Arguments

x

First set of values.

y

Second set of values.

dedupe

Specify TRUE to remove duplicate values.

Value

A vector containing the intersection of x and y.


cbailiss/pivottabler documentation built on Oct. 14, 2023, 9:38 a.m.