Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New package -dta2html- available on SSC


From   "P. Wilner Jeanty" <[email protected]>
To   [email protected]
Subject   st: New package -dta2html- available on SSC
Date   Wed, 19 Mar 2014 13:04:00 -0400

Thanks as always to Kit Baum, a new package -dta2html- is available
for download on SSC. -dta2html- generates minimum HTML (and CSS) code
to nicely display on the web a Stata dataset loaded in memory. The
output could be enhanced with JavaScript and JQuery. For instance, one
could hover the mouse on a variable name and display the label and
other characteristics for that variable. But for now -dta2html- serves
the need I had.


Examples

  1) Generate HTML code to display the auto dataset on the web

        . sysuse auto, clear

        . dta2html, saving(auto_dataset) pagetitle("The Auto Dataset
in my Browser") tabtitle("Auto Dataset")


    2) Generate HTML code to display the auto dataset on the web and
provide a link to download the data

        . dta2html, saving(auto_dataset, replace)
datalink("http://www.stata-press.com/data/r12/auto.dta";)
todisp("Download data from here", "txt")


 Best,

Wilner
[email protected]
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index