R Markdown:我的代码在控制台上运行,但在我尝试编织为HTML时却没有

时间:2015-03-30 19:24:36

标签: r knitr dplyr r-markdown

我正在运行以下代码(在我的全局环境中引用数据框):

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

0 个答案:

没有答案