Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Length of lines with -translate- and -log2html-


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Length of lines with -translate- and -log2html-
Date   Thu, 2 Oct 2003 07:02:19 -0700 (PDT)

--- Nick Cox <[email protected]> wrote:
> As far as -log2html- is concerned, I am not clear what
> the problem is here without an example. -log2html- includes
> logic to cope with continuation lines. It may well fail to catch
> all problems, but we need to see an example to work on it.

Here is an example that shows the line breaks created by -translate-
and -log2html-.

#delimit ;
sysuse auto;
set linesize 120;
log using linetest.smcl;
tabstat price mpg rep78 headroom trunk weight length turn
displacement gear_ratio foreign;
log close;
translate linetest.smcl linetest.log, translator(smcl2log);
log2html linetest.smcl;

In the Stata Results window and in linetest.smcl the -tabstat- output
appears as one table that is 120 characters wide. In linetest.log and
linetest.html the lines are broken after 79 characters. The break
appears at the variable "length". "lengt" appears one one line, "h"
on the next. The mean value of length (187.9324) is also broken,
187.932 appears on one line, 4 on the next.

Friedrich Huebler

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index