Displaying 1 result from an estimated 1 matches for "idade_freq".
2010 May 11
1
Table and Sweave
...using Sweave, but it isn't work.
The commands are:
<<>>=
Idade.tb = cut(IDADE,
breaks=c(18,26,34,42,50,58,66,74,82,90,98), right=F)
cbind(table(Idade.tb))
@
<<idades, echo=F, results=hide>>=
Idade.tb = cut(IDADE,
breaks=c(18,26,34,42,50,58,66,74,82,90,98), right=F)
Idade_freq = cbind(table(Idade.tb))
medias.idades = tapply(IDADE, SEXO, mean)
@
<<idade, echo=F, results=verbatim>>=
Idade_freq
@
or
<<>>=
xtable(Idade_freq)
@
but they are not the way I want.
Any suggestions?
--------------------------------------
Silvano Cesar da Costa
Departam...