in {hset} | R Documentation |
Parametrized inclusion predicate between a member and an "hset"
object
Description
TRUE
is returned when the argument member
is included in the set (or multiset) hset
, otherwise FALSE
is returned.
Usage
inclusion.member(member, hset, multiplicity = 1L, type.relation = `<=`)
member %in% hset # default for multiplicity and type.relation
Arguments
member |
vector of length |
hset |
object of class |
multiplicity |
how many times |
type.relation |
one of the six binary relational operator, e.g., |
Details
Arguments multiplicity
and type.relation
used only when argument hset
is generalized.
Value
TRUE
is returned if member
and hset
are in relation, otherwise FALSE
is returned.
Examples
inclusion.member(2, hset(c(2,3)))
2 %in% hset(c(2,3))
inclusion.member(1, hset(c(2,3))) # 1 %in% hset(c(2,3))
inclusion.member(2, hset(c(2,3), generalized = TRUE))
inclusion.member(2, hset(c(2,3), c(.5, 1))) # default multiplicity is 1
inclusion.member(2, hset(c(2,3), c(.5, 1)), .5)
inclusion.member(2, hset(c(2,3), c(.5, 1)), .5, `<`) # strict inclusion
[Package hset version 0.1.1 Index]