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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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