Skip to contents

A simple wrapper around filter function

Usage

item_search(items, pattern)

Arguments

items

a data.frame of items

pattern

the search pattern

Value

a filtered data.frame

Details

The function is not intended to perform any smart or advanced search.
It provides basic search across all except id attributes.

Basically it returns filter(items, if_any(-(id), ~ grepl(pattern, .)))

Examples

if (FALSE) { # \dontrun{
item_search(items = mydata$items(), pattern = "Banana")
item_search(items = mydata$items(), pattern = 25)
} # }