Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 66: |
Line 66: |
|
| |
|
| \Sexpr{f(median(d$var.1))} | | \Sexpr{f(median(d$var.1))} |
|
| |
| The "f" function here is a formatting function defined in the preamble (see above). This expression also assumes you've appended the study dataframe as <code>d</code> in the <code>results</code> list in the .Rdata file you imported.
| |
|
| |
|
| == Documentation == | | == Documentation == |
|
| |
| This page provided just the briefest of overviews of how you can use knitr/Sweave/xtable in your TeX document. There's much more documentation available that can help you do more complicated things with these tools. Here are some resources:
| |
|
| |
| * [http://yihui.name/knitr/ Knitr documentation]
| |
| * [http://kbroman.org/knitr_knutshell/ Knitr in a knutshell tutorials]
| |
| * [https://cran.r-project.org/web/packages/xtable/xtable.pdf xtable documentation]
| |
| * [https://cran.r-project.org/web/packages/xtable/vignettes/xtableGallery.pdf xtable gallery]
| |
| ** This is super useful for figuring out ways to use xtable to make various kinds of tables
| |