R/xgrep.R

Defines functions lgrep ngrep fgrep

Documented in fgrep lgrep ngrep

fgrep <- function( pattern, x, ... )        x [grep( pattern,        x , ... )]
ngrep <- function( pattern, x, ... )  names(x)[grep( pattern,  names(x), ... )]
lgrep <- function( pattern, x, ... ) levels(x)[grep( pattern, levels(x), ... )]

Try the Epi package in your browser

Any scripts or data that you put into this service are public.

Epi documentation built on April 25, 2023, 9:09 a.m.