I teach statistics and have used R with Sweave to create a LaTeX file for a Standard Normal Cumulative Distribution table. This works very well for computed tables. The package datatool package is superior for preexisting tabular information. (Although you could input the data into R and reformat with some additional work. Here is Rnw file for creating a standard normal cumulative distribution table.
\documentclass[letterpaper,12pt]{article}
\usepackage{amsmath}
\usepackage[margin=.5in]{geometry}
\pagestyle{empty}
\begin{document}
%%% Adapted from a file written by Ross Ihaka (One of the Original R Developers)
%%% --- Customisation of Sweave layout
\DefineVerbatimEnvironment{Sinput}{Verbatim} {xleftmargin=2em}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{xleftmargin=2em}
\DefineVerbatimEnvironment{Scode}{Verbatim}{xleftmargin=2em}
\DefineVerbatimEnvironment{verbatim}{Verbatim}{xleftmargin=2em}
% These definitions eliminate the space between the input and
% output in the man-machine dialog.
\fvset{listparameters={\setlength{\topsep}{0pt}}}
\renewenvironment{Schunk}{\vspace{\topsep}}{\vspace{\topsep}}
%%% --- End of customisation
\title{\textbf{Computing the Normal \\ Distribution Function}}
%%% --- Customisation of R printing and graphical layout
<<echo=false>>=
options(width=60)
options(continue=" ")
options(SweaveHooks=list(fig=function()
par(mar=c(4.1, 4.1, .1, 2.1))))
ntableb =
function(cols = 1:length(y)) {
x = seq(0, 3.4, by = .1)
y = seq(0, .09, by = .01)
p = round(outer(x, y, function(x, y) pnorm(x+y)), 4)
cat("\\begin{tabular}{|c|c*{",
length(cols)-1,"}{@{\\quad}c}|}\n", sep = "")
cat("\\hline\n")
cat(paste("\\rule{0pt}{12pt}z & ",
paste(sprintf("%.2f", y[cols]), collapse = " & "),
sep = ""), "\\\\\n")
cat("\\hline\n")
for(i in 1:length(x)) {
if (i == 1) cat("\\rule{0pt}{14pt}")
cat(paste(sprintf("%.1f & ", x[i]),
paste(sprintf("%.4f", p[i,cols]),
collapse = " & "),
sep = ""), "\\\\")
if (i %% 5 == 0 || i == length(x)) cat("[5pt]\n") else cat("\n")
}
cat("\\hline\n")
cat("\\end{tabular}\n")
}
@
\parbox[b]{3in}{Standard Normal Curve Areas $P(X\le x)$ \par\vspace{.25in}}\par
\noindent\makebox[\textwidth]{%
<<results=tex,echo=false>>=
ntableb()
@
}
\end{document}
I use TeXmaker and the command loaded in one of the user commands is
R.exe CMD Sweave %.Rnw
Now just compile the resulting *.tex file with pdfatex
datatool
package? – user11232 Mar 2 '12 at 11:10