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: Three-way table export
From
Eric Booth <[email protected]>
To
[email protected]
Subject
Re: st: Three-way table export
Date
Thu, 29 Aug 2013 05:24:24 -0500
<>
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 <[email protected]> wrote:
> drop in 1/2
>
> works fine!
>
> Nick
> [email protected]
>
>
> On 29 August 2013 11:15, Eric Booth <[email protected]> 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/