wh_entries: Get entries in vector of subsets

View source: R/set_ints.R

wh_entriesR Documentation

Get entries in vector of subsets

Description

Gives location where set would appear in imset under lexicographic ordering.

Usage

wh_entries(x)

Arguments

x

list of positive integer subsets

Given a subset of 1,2,3,... returns the location where set would appear in lexicographic order.

Examples

imset:::wh_entries(list(1, 3, 1:3))
imset:::wh_entries(powerSet(1:3))
imset:::wh_entries(1:3)


rje42/imset documentation built on March 20, 2023, 9:55 a.m.