grapes-llike-grapes: Helper functions to apply grepl() to list column elements

%llike%R Documentation

Helper functions to apply grepl() to list column elements

Description

Helper functions to apply grepl() to list column elements

Usage

lhs %llike% rhs

Arguments

lhs

Character vector.

rhs

Character vector that should be looked up in x.

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

require(data.table)
dt = data.table(a = c('R1', 'R2', 'R3', 'R4', 'R5'),
                b = list(c('A', 'B'),
                c('A'),
                list('A', 'B', 'C'),
                list(list(c('B', 'C'))),
                'B'))
dt[ a %llike% '[0-3]' ]


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.