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

st: RE: variable format


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: variable format
Date   Fri, 14 Feb 2003 12:00:20 -0000

Barbara Eberth

> I am trying to merge two datasets but the variable by which 
> I am merging 
> appears in one of the datasets as long format and as double 
> format in 
> the other dataset. Ideally I would like to have these 
> variables in long 
> format. Any idea on how to change from double to long format?

This is a matter of data types, not format sensu Stata. 

. recast long myvar 

It will squawk if there are fractional parts. 

Nick 
n.j.cox@durham.ac.uk

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index