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
"Cohen, Elan" <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: AW: Adding rows to datasheet
Date
Tue, 23 Mar 2010 10:12:33 -0400
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.
- Elan
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Sripal Kumar
> Sent: Tuesday, March 23, 2010 10:07
> To: [email protected]
> Subject: Re: st: AW: Adding rows to datasheet
>
> Can that be done for an entire row with say 25 variables
>
> On Tue, Mar 23, 2010 at 9:59 AM, Martin Weiss
> <[email protected]> wrote:
> >
> > <>
> >
> > For a single row, you could also issue commands in the
> command window:
> >
> > *************
> > input
> > 232 453
> > end
> > *************
> >
> > assuming you have two variables in your dataset. This will
> append them to
> > the end of your dataset w/o altering anything else...
> >
> >
> > HTH
> > Martin
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: [email protected]
> > [mailto:[email protected]] Im Auftrag
> von Sripal Kumar
> > Gesendet: Dienstag, 23. März 2010 14:48
> > An: statalist
> > Betreff: st: Adding rows to datasheet
> >
> > Hi,
> >
> > This might seem like a no brainer to some of you. I frequently run
> > into the trouble where I need to add rows to a previous stata
> > datasheet. When I copy rows from excel and try to add to
> an existing
> > stata datasheet, it seem to wipe off the header and replace it with
> > the the newly added first row. This happens even though I am adding
> > data to say the 20th row. The newly inserted row will
> always replace
> > the header. What am I doing wrong here?
> >
> > To explain it a bit better: My header in stata reads--no. of
> > patients, dead etc. If I add an extra row from excel which has say
> > 2345 and 2...this row deletes the header and the header
> will now read
> > as 2345 and 2 instead of no. of patients, dead.
> > thanks,
> > Sripal.
> > *
> > * 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/
> >
>
> *
> * 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/