I cannot figure out why I am getting the below error on this chunk of code. I appreciate any thoughts in advance. thank you.
Warning: Error in $: object of type 'closure' is not subsettable
Index_Percent <- reactive({input$IndexWeight})
TBA_Index_Data <- reactive({
left_join(TBAData_Gathered,Index_Weights)
TBA_Index_Data$Index_Percentage[TBA_Index_Data$cusip == "Cash"] <- Index_Percent()
})