Skip to contents

Takes UI input and tries to figure out if it's numeric or text

Usage

autocast(ui_input, quote_char = TRUE)

Arguments

ui_input

UI input from a shiny form

quote_char

TRUE will include double quotes in the character string

Value

Best guess of type casting applied to the ui_input

Examples

number = autocast('10')
text   = autocast('ten')