Sorry for a stupid question, but I am completely new to Latex. I seem to understand how to create pdf-tables from latex code in TeXworks, but all the tables, which are created, have only 1 page. I am using latex() function from Hmisc package in R to create latex code, which then I use in TeXworks. Here is the table I am trying to create:
\documentclassreport
\usepackage[paperwidth=5.5in,paperheight=7in,noheadfoot,margin=0in]geometry
\begindocument\pagestyleempty
%latex.default(allfirms_fraction, rowname = NULL)%
\begintable[!tbp]
\begincenter
\begintabularrllllr
\hline\hline
\multicolumn1cYear&\multicolumn1cZero leverage&\multicolumn1cUltra-low leverage&\multicolumn1cLow leverage&\multicolumn1cNormal leverage&\multicolumn1cObs\tabularnewline
\hline
$1950$&32.95\%&9.33\%&11.24\%&46.48\%&$ 525$\tabularnewline
$1951$&23.26\%&9.94\%&10.13\%&56.66\%&$ 533$\tabularnewline
$1952$&19.22\%&8.69\%&10.91\%&61.18\%&$ 541$\tabularnewline
$1953$&20.18\%&8.36\%&9.82\%&61.64\%&$ 550$\tabularnewline
$1954$&23.13\%&6.05\%&10.68\%&60.14\%&$ 562$\tabularnewline
$1955$&22.22\%&7.47\%&10.24\%&60.07\%&$ 576$\tabularnewline
$1956$&19.87\%&7.35\%&11.52\%&61.27\%&$ 599$\tabularnewline
$1957$&17.45\%&7.27\%&11.79\%&63.49\%&$ 619$\tabularnewline
$1958$&16.51\%&8.33\%&11.16\%&63.99\%&$ 636$\tabularnewline
$1959$&17.1\%&8.7\%&11.76\%&62.44\%&$ 655$\tabularnewline
$1960$&16.68\%&8.52\%&11.33\%&63.46\%&$1103$\tabularnewline
$1961$&16.14\%&8.65\%&12.11\%&63.1\%&$1214$\tabularnewline
$1962$&14.29\%&9.95\%&12.01\%&63.75\%&$1407$\tabularnewline
$1963$&14.49\%&9.09\%&11.37\%&65.06\%&$1574$\tabularnewline
$1964$&14.03\%&9.39\%&10.48\%&66.1\%&$1661$\tabularnewline
$1965$&11.74\%&9.01\%&10.07\%&69.19\%&$1798$\tabularnewline
$1966$&10.17\%&7.37\%&8.3\%&74.16\%&$1927$\tabularnewline
$1967$&8.65\%&7.61\%&6.81\%&76.93\%&$2115$\tabularnewline
$1968$&8.08\%&7.71\%&7.3\%&76.91\%&$2672$\tabularnewline
$1969$&6.88\%&6.98\%&7.26\%&78.88\%&$2879$\tabularnewline
$1970$&6.17\%&6.24\%&7.18\%&80.4\%&$3077$\tabularnewline
$1971$&6.19\%&7.32\%&7.85\%&78.65\%&$3185$\tabularnewline
$1972$&6.72\%&7.83\%&7.62\%&77.82\%&$3319$\tabularnewline
$1973$&5.66\%&6.45\%&7.27\%&80.63\%&$3551$\tabularnewline
$1974$&4.88\%&6.01\%&5.62\%&83.49\%&$4427$\tabularnewline
$1975$&5.53\%&7.13\%&6.1\%&81.23\%&$4375$\tabularnewline
$1976$&5.74\%&7.25\%&6.86\%&80.14\%&$4370$\tabularnewline
$1977$&5.36\%&7.15\%&6.46\%&81.04\%&$4351$\tabularnewline
$1978$&4.89\%&6.82\%&6.06\%&82.23\%&$4210$\tabularnewline
$1979$&4.63\%&6.41\%&6.1\%&82.86\%&$4101$\tabularnewline
$1980$&4.79\%&7.18\%&6.74\%&81.29\%&$4111$\tabularnewline
$1981$&5.52\%&7.9\%&8.12\%&78.46\%&$4151$\tabularnewline
$1982$&4.96\%&8.48\%&7.9\%&78.66\%&$4255$\tabularnewline
$1983$&5.75\%&11.58\%&8.4\%&74.28\%&$4455$\tabularnewline
$1984$&5.51\%&10.12\%&8.12\%&76.24\%&$4407$\tabularnewline
$1985$&5.98\%&9.32\%&7.37\%&77.34\%&$4518$\tabularnewline
$1986$&6.38\%&9.51\%&7.87\%&76.24\%&$4688$\tabularnewline
$1987$&6.73\%&9.15\%&7.37\%&76.75\%&$4709$\tabularnewline
$1988$&6.34\%&8.88\%&7.67\%&77.11\%&$4540$\tabularnewline
$1989$&6.89\%&9.16\%&6.98\%&76.97\%&$4456$\tabularnewline
$1990$&7.48\%&9.81\%&6.94\%&75.77\%&$4465$\tabularnewline
$1991$&8.77\%&11.44\%&7.77\%&72.01\%&$4605$\tabularnewline
$1992$&9.45\%&12.73\%&8.21\%&69.61\%&$5018$\tabularnewline
$1993$&10.67\%&13.92\%&8.61\%&66.8\%&$5415$\tabularnewline
$1994$&10.86\%&13.49\%&8.34\%&67.31\%&$5766$\tabularnewline
$1995$&11.35\%&13.96\%&8.19\%&66.5\%&$6424$\tabularnewline
$1996$&12.42\%&15.21\%&8.27\%&64.11\%&$6846$\tabularnewline
$1997$&12.53\%&15.74\%&7.34\%&64.39\%&$6774$\tabularnewline
$1998$&12.83\%&14.22\%&7.08\%&65.87\%&$6807$\tabularnewline
$1999$&12.87\%&15.7\%&7.47\%&63.96\%&$6804$\tabularnewline
$2000$&13.39\%&16.4\%&7.67\%&62.54\%&$6431$\tabularnewline
$2001$&14.06\%&15.21\%&7.55\%&63.17\%&$5811$\tabularnewline
$2002$&15.11\%&14.76\%&6.89\%&63.25\%&$5488$\tabularnewline
$2003$&16.9\%&14.6\%&6.86\%&61.64\%&$5336$\tabularnewline
$2004$&18.34\%&15.32\%&7.39\%&58.95\%&$5235$\tabularnewline
$2005$&19.48\%&15.09\%&7.44\%&57.99\%&$5189$\tabularnewline
$2006$&19.64\%&14.45\%&7.9\%&58\%&$5010$\tabularnewline
$2007$&19.56\%&14.82\%&6.92\%&58.71\%&$4873$\tabularnewline
$2008$&18.57\%&12.86\%&6.84\%&61.73\%&$4675$\tabularnewline
$2009$&18.95\%&14.33\%&7.82\%&58.9\%&$4516$\tabularnewline
$2010$&19.79\%&15.73\%&7.2\%&57.28\%&$4417$\tabularnewline
$2011$&20.13\%&13.8\%&7.32\%&58.75\%&$4356$\tabularnewline
$2012$&19.87\%&12.3\%&7\%&60.83\%&$4383$\tabularnewline
$2013$&20.24\%&11.19\%&7.33\%&61.25\%&$4423$\tabularnewline
$2014$&19.92\%&10.55\%&6.4\%&63.14\%&$4267$\tabularnewline
$2015$&19.68\%&9.9\%&6.58\%&63.84\%&$3465$\tabularnewline
\hline
\endtabular\endcenter \endtable
\enddocument
When I compile this code in TeXworks, it creates table in 1 page up to year 1990. I tryed opening output pdf-file in different pdf-readers and all shows that there is only single page.
What is my mistake?
Post a Comment