pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select cases based on multiple attributes


From: John Darrington
Subject: Re: select cases based on multiple attributes
Date: Tue, 5 Jul 2011 17:28:33 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

File|New|Syntax 

(or click on the Paste button from any dialog box)

J'

On Tue, Jul 05, 2011 at 01:21:06PM -0400, Jonathan Lowrey wrote:
     Ah, I think my misunderstanding is that I cannot find the syntax editor.  
Is
     it supposed to be under the "select cases" tab?
     
     -----Original Message-----
     From: John Darrington [mailto:address@hidden 
     Sent: Tuesday, July 05, 2011 1:05 PM
     To: Jonathan Lowrey
     Cc: address@hidden
     Subject: Re: select cases based on multiple attributes
     
     Like you say, there isn't currently a dialog box for the select command.
     
     However all commands can be run from the syntax editor just as they can in
     spss.
     In your example, the following should work:
     
      select if  area = "A" and species = "goat" or area = "B" and species =
     "goat".
     
     This assumes of course that area and species are both string variables.
     
     (Note however, that pspp assigns equal precedence to the AND and OR
     operators,  so they will be evaluated in a strictly left to right fashion.
     This behaviour  is exactly the same as spss, but quite unlike most other
     languages so you  might want to add some parentheses to make your 
intentions
     explicit.)
     
     J'
     
     On Tue, Jul 05, 2011 at 12:27:48AM -0400, Jonathan Lowrey wrote:
          I am running psppire.exe 0.7.8-gb2274e.
          
           
          
          I have just started using pspp and I love it.  I have experience with
     spss
          and am wondering if there is a way to emulate the select by case 
option
     in
          spss.
          
           
          
          I see that there is no Boolean command line box or dialog box.  Is
     there any
          way to do the type this type of selecting?
          
          Basically, I need to select cases based on this line of logic.
          
           
          
            IF: "area"="A" and "species"="goat" or "area" = "A" and "species"=
     "sheep"
          
     
          _______________________________________________
          Pspp-users mailing list
          address@hidden
          https://lists.gnu.org/mailman/listinfo/pspp-users
     
     
     --
     PGP Public key ID: 1024D/2DE827B3
     fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3 See
     http://pgp.mit.edu or any PGP keyserver for public key.
     

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]