format_market_data {rpredictit} | R Documentation |
Format bid and ask market data with HTML
Description
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
).
Usage
format_market_data(data)
Arguments
data |
'PredictIt' market data, of class |
Value
A tibble
containing bid and ask data formatted
with HTML tags and user-friendly column names.
Examples
## Only run this example in interactive R sessions
if (interactive()) {
data <- all_markets()
format_market_data(data)
}
[Package rpredictit version 0.1.0 Index]