From ripley at stats.ox.ac.uk  Thu Jan 10 14:59:29 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 10 Jan 2008 13:59:29 +0000 (GMT)
Subject: [Rd] write.dta (foreign package)
In-Reply-To: <4785E65A.2080605@psu.ac.th>
References: <4785E65A.2080605@psu.ac.th>
Message-ID: <Pine.LNX.4.64.0801101356490.3623@gannet.stats.ox.ac.uk>

On Thu, 10 Jan 2008, Edward wrote:

> Hi,
> I'd like to request that the 'write.dta' command also save the
> "var.labels" attributes of the data frame.
> 'read.dta' can read them, but 'write.dta' doesn't write them back.

Perhaps you could provide a patch?  Very few of us have Stata which would 
be needed to check this out.

Note that a general data frame will not have a "var.labels" attribute, so 
you need careful validity checking.

> Thanks....
> Edward McNeil
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] write.dta (foreign package)
Prof Brian Ripley