Learn R Programming

ClustMMDD (version 1.0.3)

is.element-methods: Check if a modelKS object is in a set of such objects.

Description

Return TRUE if an instance of modelKS belongs to a set.

Arguments

el
An instance of modelKS class.
set
A set of instances of modelKS class.

Value

  • TRUE if the object el belongs to a given set of modelKS.

Examples

Run this code
data(exModelKS)
is.element(c(exModelKS), c(exModelKS))
is.element(c(exModelKS, 1, c(1:5)), c(exModelKS))
is.element(c(exModelKS), c(exModelKS, 1, list(1:5, 0)))

Run the code above in your browser using DataLab