New to markdown and knit, so...
In RStudio, this markdown code does well
## '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
But when I click knit button, I get error:
Line 20 Error in apply(rst0[,c('rstQ','rstV','rstMkt','rstMkt2','rstAntiMkt')], : object 'rst0' not found Calls: <Anonimous> ... withCallingHandlers -> withVisible -> eval -> eval -> apply
But knit('../gap.Rmd')
successfully generates the gap.md
file.