-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
29 lines (25 loc) · 904 Bytes
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(data.table)
probabilities <- fread("Data\\overall_probabilities.csv")
betstape <- fread("Data\\InCSV\\tickdata_betstape.csv")
markets <- fread("Data\\InCSV\\tickdata_markets.csv")
selections <- fread("Data\\InCSV\\tickdata_selections.csv")
ui <- fluidPage(
titlePanel("Observer"),
sidebarLayout(
sidebarPanel(
selectInput("event_name", "Select event",
choices = unique(probabilities$name)),
selectInput("outcome_name", "Select outcome",
choices = unique(probabilities$selection)),
sliderInput(inputId = "time",
label = "Select time moment",
min = 0,
max = 1,
value = 1)
),
mainPanel(
tabsetPanel(tabPanel("Overall information", tableOutput("table1")),
tabPanel("Detailed information", tableOutput("table2")))
)
)
)