Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] formatting output

Peyuco Porras Porras .

2005-02-28

Replies:


 Dear R-users

 A basic question that I wasn't able to solve: Is it possible to get
 the results of the function 'quantile' expressed as data.frame? What
 I'm doing is to apply the following code to get the quantiles in a
 particular dataset:

 tmp<-tapply(data$DEN,list(Age=data$AGE,Sex=data$SEX),quantile)

 and then I save this output to HTML using the library R2HTML. However
 in order to format the tables in HTML I have to use the command
 HTML.data.frame(...) which allows me to define, for example, the
 number of digits in the html table.

 But the object 'tmp' is not a dataframe and I can't coarce it to this
 format. Is it possible to get the results of this function as a
 dataframe? I know that I'm probably missing some important concepts
 here but Im not very good in programming.

 Any hint will be appreciated

 Regards

 Peyuco
______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.