Gets filterable variable names
get_filterable_varnames.Rd
Gets filterable variable names from a given object. The names match variables
of classes in an array teal.slice:::.filterable_class
.
Arguments
- data
(
object
)
the R object containing elements which class can be checked throughvapply
orapply
.
Examples
df <- data.frame(
a = letters[1:3],
b = 1:3,
c = Sys.Date() + 1:3,
d = Sys.time() + 1:3,
z = complex(3)
)
teal.slice:::get_filterable_varnames(df)
#> [1] "a" "b" "c" "d"