Statalist


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

st: funny behaviour of _N


From   "Ashim Kapoor" <ashimkapoor@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: funny behaviour of _N
Date   Thu, 28 Aug 2008 11:53:48 +0530

Hello everyone,

Please compare the following 2 code snippets : -

1.

local num=_N
replace a=b in `num'

2.

replace a=b in _N

Surprisingly only the 1st one works ! Could some one tell me why ?

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