autocast: Automatically Cast UI Input Variable

View source: R/formods.R

autocastR Documentation

Automatically Cast UI Input Variable

Description

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')

formods documentation built on April 12, 2025, 1:57 a.m.