filterNested | R Documentation |
Keep rows that match a nested condition
filterNested(object, pattern, ...)
## S4 method for signature 'DFrame,character'
filterNested(object, pattern, ignoreCase = FALSE)
object |
Object. |
pattern |
|
ignoreCase |
|
... |
Additional arguments. |
Intended for partial matching with regular expressions. For exact matches,
refer to matchNested
function.
Modified object, containing only matching rows.
Updated 2023-12-12.
## DFrame ====
pattern <- "^[A-Z]+$"
object <- S4Vectors::DataFrame(
"V1" = c("a", "b", "c"),
"V2" = I(list(
c("aa", "bb", "CC"),
c("dd", "ee", "ff"),
c("gg", "hh", "ii")
))
)
object <- filterNested(object = object, pattern = pattern)
print(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.