i_match_label_or_idx: Match label or index

View source: R/internal_utils.R

i_match_label_or_idxR Documentation

Match label or index

Description

Match label or index

Usage

i_match_label_or_idx(
  x,
  i,
  full = FALSE,
  allow_empty_lookup = FALSE,
  allow_negative = FALSE
)

Arguments

x

label vector

i

picked label or idx or NULL

full

boolean. If TRUE, a full list of results is returned

allow_empty_lookup

boolean. If TRUE, x is allowed to be NULL. Defaults to false

allow_negative

boolean. Allow indices to be negative? Defaults to FALSE

Value

matched indices

Author(s)

Jose Eduardo Meireles


spectrolab documentation built on Feb. 16, 2023, 10:27 p.m.