position_symbol: Search For the Position of a Symbol

View source: R/utils-nse.R

position_symbolR Documentation

Search For the Position of a Symbol

Description

A thin wrapper around base::Position() to search through a list of language objects, as produced by flatten_call() or flatten_expr(), for the presence of a specific symbol.

Usage

position_symbol(x, sym, ...)

Arguments

x

(list of language)
a list of language objects in which to search for a specific symbol.

sym

(name or symbol or character)
a symbol to search for in x.

...

Additional arguments passed to Position().

Value

The position of the symbol if found, or the nomatch value otherwise.


openpharma/mmrm documentation built on April 14, 2025, 2:10 a.m.