rows with selif


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?






1 Answer


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


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