Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AW: list command


From   Jochen Sp�th <[email protected]>
To   <[email protected]>
Subject   st: AW: list command
Date   Mon, 4 Aug 2008 17:23:38 +0200

Dear Daniel,

why don't you just destring your string variable with one of the following commands and then re-run your 'list'-command replacing 'gpi' with 'newvar'?

'destring gpi, gen(newvar)'		or

'gen newvar = real(gpi)'

Best,
Jochen

-----Urspr�ngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Daniel Sepulveda-Adams
Gesendet: Montag, 4. August 2008 17:04
An: [email protected]
Betreff: st: list command

Hi,

I have a question about list command; this is what I'm doing:

list ndc old_ndc e49_ gpi g64_ if gpi>"2"

gpi is a str variable (it is a 14 digit code) & I know is wrong but I can
not figure it out how I can ask the program give me all ndc that has 2 or
more gpi.Thanks

Regards -- DSA


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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