get_supported_filter_varnames: Gets supported filterable variable names

View source: R/FilterStates-utils.R

get_supported_filter_varnamesR Documentation

Gets supported filterable variable names

Description

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

Usage

get_supported_filter_varnames(data)

Arguments

data

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

Value

character vector of variable names.

Examples

# use non-exported function from teal.slice
get_supported_filter_varnames <- getFromNamespace("get_supported_filter_varnames", "teal.slice")

df <- data.frame(
  a = letters[1:3],
  b = 1:3,
  c = Sys.Date() + 1:3,
  d = Sys.time() + 1:3,
  z = complex(3)
)
get_supported_filter_varnames(df)

teal.slice documentation built on May 29, 2024, 1:39 a.m.