make_numeric_indices: Convert indices to numerical indices

View source: R/utils.R

make_numeric_indicesR Documentation

Convert indices to numerical indices

Description

Converts (possibly) logical indices to numerical ones. Also ensures unique indices and sorts them if specified.

Usage

make_numeric_indices(ind, n = NULL, unique = TRUE, sort = TRUE)

Arguments

ind

The numerical or logical index vector

n

Max numerical index (used if ind is logical and might be recycled)

unique

Whether to keep every (numerical) index at most once

sort

Whether to sort the numerical indices

Value

A numerical index vector


sebastian-engelke/graphicalExtremes documentation built on Jan. 10, 2025, 10:02 a.m.