Quantcast

converting a matrix or data.frame into an html table

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

converting a matrix or data.frame into an html table

Samuel Le
Dear all,



Is there a function in R to convert a matrix or a data.frame into an html table?

Many thanks,

Samuel


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: converting a matrix or data.frame into an html table

Gerrit Eichner
Hello, Samuel,

take a look at the package R2HTML.

  Hth  --  Gerrit


On Mon, 9 May 2011, Samuel Le wrote:

> Dear all,
>
> Is there a function in R to convert a matrix or a data.frame into an html table?
>
> Many thanks,
>
> Samuel


---------------------------------------------------------------------
Dr. Gerrit Eichner                   Mathematical Institute, Room 212
[hidden email]   Justus-Liebig-University Giessen
Tel: +49-(0)641-99-32104          Arndtstr. 2, 35392 Giessen, Germany
Fax: +49-(0)641-99-32109        http://www.uni-giessen.de/cms/eichner

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: converting a matrix or data.frame into an html table

Gregoire Pau-3
In reply to this post by Samuel Le
Have a look at hwrite() in the hwriter package:
http://www.embl.de/~gpau/hwriter/index.html

If x is a data frame, the following will do it:
 > library("hwriter")
 > hwrite(x, "x.html")

Cheers,

Greg
---
Gregoire Pau
EMBL Research Officer
http://www.embl.de/~gpau/

On 09/05/11 12:40, Samuel Le wrote:

> Dear all,
>
>
>
> Is there a function in R to convert a matrix or a data.frame into an html table?
>
> Many thanks,
>
> Samuel
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: converting a matrix or data.frame into an html table

David Scott-6
In reply to this post by Samuel Le
On 9/05/2011 10:40 p.m., Samuel Le wrote:

> Dear all,
>
>
>
> Is there a function in R to convert a matrix or a data.frame into an html table?
>
> Many thanks,
>
> Samuel
>

xtable() in the xtable package can do this (at least to some extent). It
is commonly used to write LaTeX but there is an option to produce html
as well.

David Scott

--
_________________________________________________________________
David Scott Department of Statistics
                The University of Auckland, PB 92019
                Auckland 1142,    NEW ZEALAND
Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055
Email: [hidden email],  Fax: +64 9 373 7018

______________________________________________
[hidden email] 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.
Loading...