i_match_label: Match label

View source: R/internal_utils.R

i_match_labelR Documentation

Match label

Description

Match label

Usage

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

Arguments

x

label vector

i

picked label 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 labels to be negative? Defaults to FALSE

Value

matched indices, or list in case full = TRUE

Author(s)

Jose Eduardo Meireles


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