Olá Rodrigo,
muito obrigada pelo retorno. Eu tentei ja usar o print do xtable, mas acredito que estou com dificuldade em entender a funçao. Não recebo a tabela quando dou o comando, meu output é:
> print(xtable(table(groups_fit,groups_mbi)))
% latex table generated in R 3.0.3 by xtable 1.7-3 package
% Thu Jun 05 16:33:46 2014
\begin{table}[ht]
\centering
\begin{tabular}{rrrrrr}
\hline
& [ 9.0,19.0) & [19.0,26.4) & [26.4,31.9) & [31.9,38.0) &
[38.0,53.0] \\
\hline
[25.1,35.0) & 31 & 15 & 1 & 0 & 0 \\
[35.0,46.0) & 50 & 51 & 28 & 4 & 0 \\
[46.0,55.5) & 11 & 34 & 35 & 33 & 11 \\
[55.5,68.0) & 2 & 6 & 27 & 39 & 28 \\
[68.0,96.1] & 0 & 0 & 2 & 9 & 50 \\
\hline
\end{tabular}
\end{table}
Não entendi ainda se a tabela é salva em algum lugar e tenho que exportá-la, achei que receberia o output direto no R.
--
Daniela Rodrigues Recchia
M.Sc. in Statistics
Tel. (Mobil): +49 01578 7588382
Germany
“The standard of success in life is absolutely the amount of joy you feel”
Esther & Jerry Hick
Em Quinta-feira, 5 de Junho de 2014 15:14, Rodrigo Coster <rcoster@gmail.com> escreveu:
A função xtable() do pacote xtable deve funcionar para o teu caso. Da para informar onde tu quer as linhas horizontais com o parâmetro hline.after (dai precisa usar print(xtable(table(groups_fit,groups_mbi)), hline.after = vetor)
2014-06-05 10:08 GMT-03:00 Daniela Recchia
<daniela_recchia@yahoo.com.br>:
Olá pessoal,
pesquisei algumas funções para obter tabelas "mais bonitas" (como uma do excel, com linhas e tudo mais) porém só encontrei exemplos - vários - para casos de tabelas mais complexas. Tentei o paxote xtables e também o Hmisc mas não
obtenho ainda o output que quero, poderia ser em pdf, html ou o que fosse - mas não dá certo pois tenho apenas uma tabela de frequencias e não um modelo.
Por exemplo quero ter um output bonito para essa tabela:
> table(groups_fit,groups_mbi)
groups_mbi
groups_fit [ 9.0,19.0) [19.0,26.4) [26.4,31.9) [31.9,38.0)
[25.1,35.0) 31 15 1 0
[35.0,46.0) 50 51 28 4
[46.0,55.5) 11 34
35 33
[55.5,68.0) 2 6 27 39
[68.0,96.1] 0 0 2 9
groups_mbi
groups_fit [38.0,53.0]
[25.1,35.0) 0
[35.0,46.0)
0
[46.0,55.5) 11
[55.5,68.0) 28
[68.0,96.1] 50
tentei com o latex(tabular) mas ainda nao da certo, continua no mesmo formato. Alguém teria uma sugestão?
Obrigada!
Daniela
--
Daniela Rodrigues Recchia
M.Sc. in Statistics
Tel. (Mobil): +49 01578 7588382
Germany
“The standard of success in life is absolutely the amount of joy you feel”
Esther & Jerry Hick
_______________________________________________
R-br mailing list
R-br@listas.c3sl.ufpr.br
https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.