\clearpage \listoftables \listoffigures \clearpage
library(knitr) #opts_chunk$set(cache=F, size='Large', fig.pos='H', dev='cairo_pdf', dev.args=list(family="libertine")) opts_chunk$set(comment=NA, warning=F, tidy=T, message=F) opts_knit$set(aliases=c(h = 'fig.height', w = 'fig.width', c='fig.cap')) options(digits=3) par(lend=1) .dt <- date()
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(cars)
You can also embed plots, for example:
plot(cars)
\clearpage
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
library(xtable) mtcar2 <- cbind(mtcars, mtcars) print(xtable(mtcar2[1:6,1:11])) #mktable2(exclude, use.rownames=F, caption="Participants excluded$^a$ from per-protocol analysis.", shortcap = "Participants excluded from per-protocol analysis", alignment="lSSS", headerrows=0, labelwidth=.15, colnames=exclude.descrip, size="footnotesize", footnotes="A total of 27 individuals excluded for non-adherence to study procedures (either or both adherence scores less than 0.60), and an additional two with BMI greater than 35 kg/m$^2$ at trial baseline", label="PPexclude")
\clearpage
#mktable2(t1, transpose=T, caption="Description of ITT sample, N = 149; Mean (Standard Deviation) or N (Percent) shown.", shortcap="Description of Intention-to-Treat Sample", row.descrip = t1.descrip, size="small", footnotes=c("Proportion of planned exercise visits attended", "Proportion of planned supplements taken", "Participants with both exercise and product compliance scores at least 0.60", "Excludes two individuals with out-of-range BMI values at screening"), label="description", alignment="cc", headerrows=1, headerlabel="", labelwidth=.35, width=.9)
\clearpage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.