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

st: RE: variable format

From   "Nick Cox" <>
To   <>
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. 


*   For searches and help try:

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