[R] from R to html

ronggui ronggui.huang at gmail.com
Thu Apr 26 13:16:03 CEST 2007


Try the package "R2HTML".

On 4/26/07, elyakhlifi mustapha <elyakhlifi_mustapha at yahoo.fr> wrote:
> hello,
> here's a data frame
>
> > A2
>    Gr_C Id_Cara          Libc_C Unit_C
> 1 30770     743     SCLERO CAP%      %
> 2 30770     627 RDT GR PR & SEC   q/ha
> 3 30770     638        PEUPL M2  nb/m2
> 4 30770     740 SCLEROTI % COLL      %
> 5 30770     739 VERSE RECOLT%NB      %
>
> and  I 'd like to export it to html
> to do this I thougth that the script below it was good
>
> > write.table(A, "C:/Documents and Settings/melyakhlifi/Bureau/sortie.html", col.names = TRUE)
>
> but the results doesn't satisfy me it seems like below
>
> "Gr_C" "Id_Cara" "Libc_C" "Unit_C" "1" 30770 743 "SCLERO CAP%" "%" "2" 30770 627 "RDT GR PR & SEC" "q/ha" "3" 30770 638 "PEUPL M2" "nb/m2" "4" 30770 740 "SCLEROTI % COLL" "%" "5" 30770 739 "VERSE RECOLT%NB" "%"
>
> In fact I'd like keep the same format with columns and rows I knew now that the command I used it's insufficient and I wish to know how I could to export ma data frame to html using html langage (with marks out like <html>.....</html>).
> thanks.
>
>
>
> ___________________________________________________________________________
>
>
>
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
Ronggui Huang
Department of Sociology
Fudan University, Shanghai, China



More information about the R-help mailing list