tab.search: Search within data.frame or tibble

View source: R/basefunctions.R

tab.searchR Documentation

Search within data.frame or tibble

Description

tab.search searches for pattern within a data-frame or tibble, returning column(s) and row(s)

Usage

tab.search(searchdata = rawdata, pattern, find.all = T, names.only = FALSE)

Arguments

searchdata

table to search in, predefined as rawdata

pattern

regex, for exact matches add ^findme$

find.all

return all row indices or only 1st per column,default=TRUE

names.only

return only vector of colnames rather than list with names and rows, default=FALSE

Value

A list with numeric vectors for each column giving row numbers of matched elements


wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.