Graphics, Figures & TablesObtain table in Latex from .DAT files through .R and .RNW

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
vbenitocoelho
Posts: 4
Joined: Tue Jul 15, 2014 10:14 am

Obtain table in Latex from .DAT files through .R and .RNW

Post by vbenitocoelho »

Hello,

In my job my boss is asking me to obtain automatically from a a .DAT file a table in latex.

I was doing some research on internet and this is what a found:

1st. Obtain a .R file ( I don't know if this .R file is obtained from .DAT, i think so... with package xtable)

2nd. Create a .RNW file from my .R

3th. Through Sweave function (in R) obtain a doc.tex and then finally the Latex doc.

Does anyone know about this subject???

Thank you.

Best regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Obtain table in Latex from .DAT files through .R and .RNW

Post by Johannes_B »

If you already have dat-files (i assume/hope pure text files?) you can easily do that with pgfplots/pgfplotstable.

Are you actually use R? If not, there is no use in learning it just to produce tabular material.

If you post an example, we could show you how to do that. But the package documentation can do so as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply