我正在运行以下代码(在我的全局环境中引用数据框):
schedule_sort_1 <- group_by(FileName, Date)
schedule_table_1 <- summarize(schedule_sort_1, Run_Time_hrs = sum(as.numeric(Interval_s))/3600, Start_Time = Time[1], End_Time = Time[length(Time)], Mean_Outdoor_Temp = mean(Outside.Air.Temp))
kable(schedule_table_1, digits = 3, align = "c")
当我使用“Run Current Chunk”按钮进行测试时,表格按预期显示;但是,当我尝试编织文档时,我收到以下错误:
Error in group_by_(.data, .dots = lazyeval::lazy_dots(...), add=add) : object 'FileName' not found Calls: <Anonymous> ...withVisible -> eval -> eval -> group_by -> group_by_ Execution halted
任何提示都会很感激... thx