[R] converting a matrix or data.frame into an html table

David Scott d.scott at auckland.ac.nz
Mon May 9 13:51:49 CEST 2011


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:	d.scott at auckland.ac.nz,  Fax: +64 9 373 7018



More information about the R-help mailing list