Created a Data Frame ofp.1
which contains 13 rows and 2 columns using normal R file. The Data Frame is present in memory .
Now I want to use this table in xtable to print in R Markdown file.
`---
title: "abc"
output: html_document
---
<table border = 1 align='center'>
<tr>
<td style='text-align:center'>
```{r include=FALSE}
library(xtable)
```
```{r results='asis', echo=FALSE}
print(xtable(ofp.1),type='html',include.rownames=F)
```
</td>
</tr>
</table>
I am getting error Error in xtable(ofp.1) : object 'ofp.1' not found
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> print -> xtable
Execution halted
what i Can figure out is that Markdown cannot find my Table though it is present in memory. Need Help .Thanks