choices: Creates a "choices" vector for 'shiny::selectizeInput()'

Description Usage Arguments Value

View source: R/xt-utils.R

Description

Creates a "choices" vector for shiny::selectizeInput()

Usage

1
2
choices(var_col, .context, tbl_name = .context$tbl_name,
  keep_na = c("if_any", "omit_na", "insert_na"))

Arguments

var_col

Name of the column to extract unique values

.context

List. The shinyXT context.

tbl_name

Name of the requested table.

keep_na

How to handle missing values: "if_any" (default) keeps NAs, "omit_na" drops NAs, "insert_na" makes sure NA is the first value.

Value

A character vector


numeract/shinyXT documentation built on May 30, 2019, 5 a.m.