Error: Object of type 'closure' is not subsettable
I get the below error when I try to run the shiny app, below are the lines I have in r.
playertable = reactive({ data.frame(Teams = t1()$team1,Played = t1()$count+t2()$count,Wins = wl()$no_of_wins,Points = round(wl()$no_of_wins*2,)) })
playertable$Tied = reactive({ ifelse(playertable()$Teams == tied()$team1|playertable()$Teams == tied()$team2,1,0) })