Skip to content

quick xtable questions

8 messages · Brian Scholl, Uwe Ligges, Peter Malewski +4 more

#
Hi, I'm creating a lot of tables in a file for inclusion in a Latex
document.  When I try to compile that document there is an error "too many
unprocessed floats."  Is there a way to correct this?

Also, in a Latex table I want R to put in a $\beta$ in the caption, but it
puts a weird system character instead of the \b


Brian

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Brian Scholl wrote:
The question is how you tried to do it (and you are not very specific in
your question). I guess you forgot to double the backslashes - and
double doubled ones, depending on the way evaluation takes place...

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
This is a latex faq. In German there is an answer at:
http://www.dante.de/faq/de-tex-faq/html/makros2.html#8

..look arount the internet and find the english equivalent!
P.
On Fri, Aug 23, 2002 at 09:59:33AM +0200, Brian Scholl wrote:

  
    
#
I believe this is a LaTeX related problem and not a problem with
[R]/xtable. The reason is that LaTeX tries to place the floats (tables and 
images) where they best fit and if they not fit very well they are placed
at the end of the document. This is often happens if the images/tables
are big. If there are too many of badly placed floats you will the kind
of error message you are reporting.

First, try to add the options h - here, t - top, b - bottom, i.e. 
\begin{table}[htb]. It might help. Secondly, you can specify the
page region where floats are allowed to be placed. Here is an example that
I once used:

% Define where floats (figures, tables etc) can be place.
% For more information see:
%
%   http://www.cs.ruu.nl/~piet/floats/node1.html
%
% Max fraction of page for floats at top (default 0.7)
\renewcommand{\topfraction}{0.95}
% Max fraction of page for floats at top (default 0.7)
\renewcommand{\bottomfraction}{0.95}
% Min fraction of page for text (default 0.2)
\renewcommand{\textfraction}{0.05}
% Min fraction of floatpage that should have floats (default 0.5)
\renewcommand{\floatpagefraction}{0.35}
% Max number of floats at top of page (default 2)
\setcounter{topnumber}{3}
% Max number of floats at bottom of page (default 1)
\setcounter{bottomnumber}{3}
% Max number of floats on a page (default 3)
\setcounter{totalnumber}{6}

Finally, you can alway use brute force and add \newpage between some
of the tables to help LaTeX. Not very nice, but it often works.


Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences 
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
+46 46 2229611 (off), +46 708 909208 (cell), +46 46 2224623 (fax)
h b @ m a t h s . l t h . s e, http://www.maths.lth.se/~hb/
On Fri, 23 Aug 2002, Brian Scholl wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 23 Aug 2002, Brian Scholl wrote:
|Hi, I'm creating a lot of tables in a file for inclusion in a Latex
  |document.  When I try to compile that document there is an error "too many
  |unprocessed floats."  Is there a way to correct this?


This is not really xtable but latex problem.  It means latex keeps on
collecting new tables (end figures) but do not have a suitable page to put
them on.  You may consider \clearpage (and perhaps package afterpage)
somewhere to force the tables to be printed.  Check the placement options on
the
\begin{table}[htbp], specially p option should help (it puts a float on a
separate sheet, althoug I think it is default).

  |
  |Also, in a Latex table I want R to put in a $\beta$ in the caption, but it
  |puts a weird system character instead of the \b

you should write "$\\beta$"


Ott

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Is there a (cross-platform) sleep/pause/wait function in [R]? 

I want to poll a file once in a while to see if and external process is
ready. Between each poll [R] should consume as little CPU as possible.

Thanks

Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences 
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
+46 46 2229611 (off), +46 708 909208 (cell), +46 46 2224623 (fax)
h b @ m a t h s . l t h . s e, http://www.maths.lth.se/~hb/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Henrik Bengtsson <hb at maths.lth.se> writes:
Sys.sleep()
#
?Sys.sleep ...
Help files with alias or title matching `sleep',
type 'help(FOO, package = PKG)' to inspect entry 'FOO(PKG) TITLE':

sleep(base)             Students' Sleep Data
sweep(base)             Sweep out Array Summaries
Sys.sleep(base)         Suspend Execution for a Time Interval
On Fri, 23 Aug 2002, Henrik Bengtsson wrote: