Hi, you can use the Sexpr{} command to include R output in a table:
<<Normal1,echo=T>>=
qs=1
@
Stores value 1 in object qs (alternatively written as qs <- 1).
Using \Sexpr{qs} (in plain tex or ERT in lyx) prints the value of qs. This can be included in a table:
\begin{tabular}{|c|}
\hline ...
Search found 1 match
Search found 1 match
• Page 1 of 1
- by tormod.boe
- Tue Jul 06, 2010 10:08 am
- Forum: LyX
- Topic: including a Sweave/R code chunk in a LyX table cell
- Replies: 3
- Views: 3608
Search found 1 match
• Page 1 of 1
Jump to
- LaTeX
- ↳ Text Formatting
- ↳ Graphics, Figures & Tables
- ↳ Math & Science
- ↳ Fonts & Character Sets
- ↳ Page Layout
- ↳ Document Classes
- ↳ General
- LaTeX's Friends
- ↳ BibTeX, biblatex and biber
- ↳ MakeIndex, Nomenclature, Glossaries and Acronyms
- ↳ Conversion Tools
- ↳ Viewers for PDF, PS, and DVI
- ↳ XeTeX
- ↳ Others
- LaTeX Distributions
- ↳ Decision Guidance
- ↳ MiKTeX and proTeXt
- ↳ TeX Live and MacTeX
- ↳ Others
- LaTeX Editors
- ↳ Decision Guidance
- ↳ AUCTeX
- ↳ Kile
- ↳ LEd
- ↳ LyX
- ↳ Scientific Word/Workplace
- ↳ Texmaker and TeXstudio
- ↳ TeXnicCenter
- ↳ Announcements
- ↳ General
- ↳ Templates, Wizards & Tools
- ↳ Feature Suggestions
- ↳ Development
- ↳ TeXShop
- ↳ TeXworks
- ↳ WinEdt
- ↳ WinShell
- ↳ Others
- LaTeX Templates
- ↳ Articles, Essays, and Journal Templates
- ↳ Theses, Books, Title pages
- ↳ Letters
- ↳ Presentations and Posters
- ↳ Curricula Vitae / Résumés
- ↳ Assignments, Laboratory books and reports
- ↳ Calendars and Miscellaneous
- LaTeX Community
- ↳ Announcements
- ↳ Community talk
- ↳ Comments & Wishes
- ↳ New Members
- LaTeX Books
- ↳ LaTeX Beginner's Guide