I am trying to create a report including the output of a linear regression model (included in a list). However I can't get rid of annoying characters like [[1]] or #'s when knitting. Here is my code:
{r error=FALSE, warning=FALSE, message=FALSE}
x = c(1,2,3)
y = c(1,2,3)
df = data.frame(x,y)
lm.fit = lm(y ~ x , data = df)
mylist = list(lm.fit)
mylist[1]
And it gives me this:
I also tried include = FALSE but that removes the report. Does anyone know a better way for reporting such outputs in a nice professional way without those ugly #'s and [[1]]?