ls_grep: List objects in global environment matching a regex pattern

Description Usage Arguments Value

View source: R/ls_grep.R

Description

Determine the names of all objects in the global environment that match a specified regex pattern.

Usage

1
ls_grep(pattern, value=TRUE, ...)

Arguments

pattern

character string, the regex pattern to match. Passed to grep.

value

logical, whether to return the names of the objects. If set to FALSE, the position of the objects in the global environment object listing is returned. Defaults to TRUE.

...

optional arguments passed to grep.

Value

a vector of character names or numeric positions for the matches.


mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.