Skip to contents

Gets filterable variable names from a given object. The names match variables of classes in an array teal.slice:::.filterable_class.

Usage

get_filterable_varnames(data)

Arguments

data

(object)
the R object containing elements which class can be checked through vapply or apply.

Value

character the array of the matched element names

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"