Learn R Programming

emuR (version 2.4.0)

muclass: Find common elements in vectors

Description

Finds common elements in vectors

Usage

muclass(labels, class)

Value

A logical vector which is TRUE for each element in labels which matches class or an element of class.

Arguments

labels

A vector of labels.

class

A label or vector of labels.

See Also

match

Examples

Run this code

muclass(c("a", "b", "c"), c("a", "c"))
#[1] TRUE FALSE TRUE

Run the code above in your browser using DataLab