| format_market_data | R Documentation |
Wrapper function to apply HTML formatting to 'PredictIt' market
data. Can be displayed in a shiny app, or standalone in an
htmlwidget (e.g. datatable).
format_market_data(data)
data |
'PredictIt' market data, of class |
A tibble containing bid and ask data formatted
with HTML tags and user-friendly column names.
## Only run this example in interactive R sessions
if (interactive()) {
data <- all_markets()
format_market_data(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.