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 Oct. 10, 2024, 5:07 p.m.