%llike% | R Documentation |
Helper functions to apply grepl() to list column elements
lhs %llike% rhs
lhs |
Character vector. |
rhs |
Character vector that should be looked up in x. |
Andreas Scharmueller, andschar@proton.me
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]' ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.