Re: [R] xtable with Sweave

2010-06-14 Thread James W. MacDonald

Hi Silvano,

Silvano wrote:

Hi,

I'm using Sweave to prepare a descriptive report.
Are at least 20 tables built with xtable command of kind:

<>=
q5 = factor(Q5, label=c("Não", "Sim"))
(q5.tab = cbind(table(q5)))
@

<>=
xtable(q5.tab, align="l|c", caption.placement = "top", table.placement='H')
@

I'm getting the following message:

Too many unprocessed floats

in Latex file.

How to avoid these messages appearing?


Not really an R-help question, and easily answered using our friend google.

Anyway, you need to cause the floats to be processed before you have 
'too many'. This is done by adding a \clearpage to the LaTeX portion of 
your document every so often.


Best,

Jim




--
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html

and provide commented, minimal, self-contained, reproducible code.


--
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826
**
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues 


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] xtable with Sweave

2010-06-14 Thread Marc Schwartz
On Jun 14, 2010, at 8:09 AM, Silvano wrote:

> Hi,
> 
> I'm using Sweave to prepare a descriptive report.
> Are at least 20 tables built with xtable command of kind:
> 
> <>=
> q5 = factor(Q5, label=c("Não", "Sim"))
> (q5.tab = cbind(table(q5)))
> @
> 
> <>=
> xtable(q5.tab, align="l|c", caption.placement = "top", table.placement='H')
> @
> 
> I'm getting the following message:
> 
> Too many unprocessed floats
> 
> in Latex file.
> 
> How to avoid these messages appearing?


Hi,

That is an error message from 'latex' indicating that you may have too many 
float tables without sufficient separation (eg. new pages, text in between, 
etc.) and/or conflicts in table placement.

You might have a look at the relevant TeX FAQ here:

  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tmupfl

Also, while I don't use xtable(), I do believe that you have to call it using 
the print method directly to specify non-default arguments:

  print(xtable(q5.tab, align = "l|c"), caption.placement = "top", 
table.placement = 'H')

See the help pages for ?xtable and ?print.table, including the last examples in 
the former.

HTH,

Marc Schwartz

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] xtable with Sweave

2010-06-14 Thread Silvano

Hi,

I'm using Sweave to prepare a descriptive report.
Are at least 20 tables built with xtable command of kind:

<>=
q5 = factor(Q5, label=c("Não", "Sim"))
(q5.tab = cbind(table(q5)))
@

<>=
xtable(q5.tab, align="l|c", caption.placement = "top", 
table.placement='H')

@

I'm getting the following message:

Too many unprocessed floats

in Latex file.

How to avoid these messages appearing?

--
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.