Skip to main content

builtin_intersect

Function builtin_intersect 

Source
fn builtin_intersect(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Set intersection: elements present in both x and y.

Works on character, integer, and double vectors. For numeric inputs, returns a numeric vector; for character inputs, returns a character vector.

@param x vector @param y vector @return vector of common elements