[R] R Markdown (Rstudio) Limit Results in knit Pdf

Teis M. Kristensen tk391 at scarletmail.rutgers.edu
Sat Oct 4 17:08:44 CEST 2014


Hi all,

I am writing here because I would like to limit the number of lines that are produced from a function when I knit my markdown document in R.

The code is written down as following and gives 50+ lines of data when run. My goal is to only have 9 lines of code produced by the sedist function.

```{r, results=1:9}
sedist(FILENAME, method="correlation")
```

I have tried using {r, message=1:9}, {r, Hide=1:9} and similar. 

Please let me if you have a solution.

Best,
Teis Moeller Kristensen
School of Communication and Information
Rutgers University
Office ANX A - 103


	[[alternative HTML version deleted]]



More information about the R-help mailing list