R Knit Markdown代码块:“找不到对象”

时间:2019-05-21 17:28:06

标签: r rstudio markdown r-markdown knitr

降价和编织的新手,所以...
在RStudio中,此降价代码效果很好

## 'r': razão entre opções
```{r}
round(apply(rst0[,c('rstQ','rstV','rstMkt','rstMkt2','rstAntiMkt')],2,mean),3)
```
  rstQ       rstV     rstMkt    rstMkt2 rstAntiMkt 
81.408    111.098      0.012      0.007      0.005 

但是当我单击编织按钮时,出现错误:

Line 20 Error in apply(rst0[,c('rstQ','rstV','rstMkt','rstMkt2','rstAntiMkt')], : object 'rst0' not found Calls: <Anonimous> ... withCallingHandlers  -> withVisible -> eval -> eval  -> apply

但是knit('../gap.Rmd')成功生成了gap.md文件。

0 个答案:

没有答案