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) })
![](https://www.edureka.co/community/?qa=blob&qa_blobid=13058876350758837037)