View source: R/cdr_coerce_value.R
cdr_coerce_value | R Documentation |
DT::coerceValue()
Change cell value using DT::coerceValue()
cdr_coerce_value(input_val, old_mem_val)
input_val |
cell_edit value |
old_mem_val |
type from database table |
input_val value coerced to the correct df_tbl
value
## Not run:
cdr_coerce_value(c('2023-03-17', '2023-03-17T14:28:24Z'), lubridate::now())
input_val <- c('true','t','truthy','tri',1,0,5,-5,'false','bla bla bla','a',' ','',
'na','none','no', 'yes', 'off', 'on', 'no', 'f','F','T', 'NO')
purrr::set_names(purrr::map(input_val, ~cdr_coerce_value(., TRUE)), input_val)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.