Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Three-way table export |
Date | Thu, 29 Aug 2013 11:27:36 +0100 |
Quite so. My correction was incorrect. Sorry, and belay that Nick njcoxstata@gmail.com On 29 August 2013 11:24, Eric Booth <eric.a.booth@gmail.com> wrote: > <> > > Except I want to drop the first row and the third row in the dataset. The range 1/2 would drop the first and second row. By having the code: > >>>> drop in 1 >>>> drop in 2 > > in there sequentially, this means that row one is dropped first and then the third row that I wanted to drop is now moved up to row two, so I follow it up with "drop in 2". > > - Eric > > > > On Aug 29, 2013, at 5:19 AM, Nick Cox <njcoxstata@gmail.com> wrote: > >> drop in 1/2 >> >> works fine! >> >> Nick >> njcoxstata@gmail.com >> >> >> On 29 August 2013 11:15, Eric Booth <eric.a.booth@gmail.com> wrote: >>> <> >>> >>> Among other possible improvements to my code, this part: >>> >>>> drop in 1 >>>> drop in 2 >>> >>> could be telescoped to: >>> >>> drop if inlist(_n, 1, 3) >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/