button_output {handcodeR}R Documentation

button_output: Formatting of output for shiny::radioButtons

Description

'button_output' is an internal function to 'handcode'. It works within the Shiny-App 'handcoder_app' to format the look of the shiny::radioButtons.

Usage

button_output(classification, button, names = FALSE)

Arguments

classification

Classification list obtained as list item from 'data_for_app'

button

Numerical value indicating for which button names and labels should be returned

names

Logical value indicating whether the function is supposed to return a formatted list of labels or a vector of names for use in radioButtons.

Value

Depending on the logical names input, the function returns a list of HTML formatted labels or the list of category names for the display of the radioButtons in the Shiny-App.


[Package handcodeR version 0.1.2 Index]