作者:
cywhale (cywhale)
2020-09-04 22:03:00我其实不太确定dplyr语法 run你的code都有Error: Column`Last_Week_Total` is of unsupported class data.frame但换成data.table就成功了 dt<-copy(gdata2)%>%setDT()dt[`date-D`>= as.Date(input$daterange[1],"%Y-..,]%>%.[,`Last_Week_Total`:=sum(`Last_Week_Total`),by=.(`date-D`)]%>%DT::..很正常so请检查dplyr?那段code