find_var: Find variable

Description Usage Arguments Details Value Functions Author(s) See Also Examples

View source: R/find_var.r

Description

Look for a pattern in the names of R objects (typically data frames) and return the hits

Usage

1
2
3
find_var(pattern, dfs = TRUE, ignore.case = TRUE, ...)

find_info(pattern, ignore.case = TRUE, ..., verbose = TRUE)

Arguments

pattern

pattern to look for

dfs

logical or character string. If a character vector of the names of R objects is given, the names of these will be examined with grepr ; if TRUE all data frames in the global environment will be examined and if FALSE all objects with a 'names' attribute will be examined.

ignore.case

logical; should upper/lower case distinction be ignored? (default TRUE)

...

arguments to be passed to grep

verbose

logical, show messages?

Details

This function applies grepr to names of a set of R objects and returns the results as a list

Value

a list

Functions

Author(s)

Henrik Renlund

See Also

grepr, grep

Examples

1
2
require(datasets)
find_var(pattern="a", dfs=c("mtcars", "esoph"), index=TRUE)

renlund/dataman documentation built on May 27, 2019, 5:51 a.m.