markets_table: Get JavaScript datatable containing bids and asks for all...

markets_tableR Documentation

Get JavaScript datatable containing bids and asks for all 'PredictIt' markets

Description

Wrapper function to return a datatable containing 'PredictIt' market data. Can be displayed in a shinyApp, RMarkdown document, or exported via saveWidget().

Usage

markets_table(data)

Arguments

data

'PredictIt' market data, of class data.frame or tibble, as returned by all_markets() or single_market.

Value

An interactive datatable object containing formatted bid and ask data for the provided market data.

Examples

data <- all_markets()
markets_table(data)


danielkovtun/predictit documentation built on July 23, 2022, 9:28 p.m.