Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: AW: Adding rows to datasheet
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
RE: st: AW: Adding rows to datasheet
Date
Tue, 23 Mar 2010 21:07:11 +0100
<>
"
No need for anything by way of -set obs-, which by the way I am sure I
didn't invent!"
I guess Philipp was more concerned about the " `=_N+1' " part of the -set
obs- statement which he may have snapped up in your post:
http://www.stata.com/statalist/archive/2006-11/msg00222.html
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Dienstag, 23. März 2010 21:00
To: [email protected]
Subject: RE: st: AW: Adding rows to datasheet
Stata doesn't have "headers". I don't know what you mean here, the first
observation or the variable information shown in the Editor.
I don't usually add extra rows -- Stata terminology is observations --by
copy and paste, but I just tried it from an application called MS Excel
which I found on my Windows machine.
1. Typed one observation with 1 2 3 into Stata Editor.
2. Typed one row with 3 4 5 into said MS Excel.
3. Copied that row and pasted it into new row in Editor. Worked fine.
No need for anything by way of -set obs-, which by the way I am sure I
didn't invent!
Nick
[email protected]
Sripal Kumar
Tried set obs `=_N+1'. It does create an extra row but when I use the
editor to paste into it, nothing pastes into that row. It goes to
replace the header!!!
On Tue, Mar 23, 2010 at 10:12 AM, Cohen, Elan <[email protected]> wrote:
> Have you tried increasing the number of observations first, then
pasting your variables?
>
> For instance, if you'd like to add one row, first type:
>
> set obs `=_N+1'
>
> then try pasting your data into the editor window.
*
* 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/