rows with selif

Hi,

GAUSS returns a 1 instead of zero after the command:

rows(selif(x,x.==3)) whenever the argument of selif is missing. Any simple fix to that?

Thanks,

Matteo

 

 

 

1 Answer



0



If you just need to know how many 3's are in 'x', the simplest fix would be to change your code from:

rows(selif(x,x.==3))

to this:

sumc(x .== 3);

aptech

1,773

Your Answer

1 Answer

0

If you just need to know how many 3's are in 'x', the simplest fix would be to change your code from:

rows(selif(x,x.==3))

to this:

sumc(x .== 3);

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy