dot-getSubscript: Get list subscript

.getSubscriptR Documentation

Get list subscript

Description

Based on available list element names and subscript value determine index of the element requested

Usage

.getSubscript(lst, i)

Arguments

lst

list to search subscript for

i

character or numeric to determine final list index

Value

numeric index of the requested element in the list

Examples

l = list(a="a", b="b")
.getSubscript(l, 1) == .getSubscript(l, "a")

pepr documentation built on Nov. 21, 2023, 5:06 p.m.