Learn R Programming

mmrm (version 0.3.14)

position_symbol: 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, ...)

Value

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

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().