It would be convenient if the (count) operator in -collapse- accepted string variables, just as (first), (last), (firstnm), and (lastnm) do.
Another convenience would be giving -collapse- a (distinct) operator that returned the number of distinct values taken on within each -by()- group (like the function -nvals()- in -egenmore-).
Another convenience would be giving -collapse- a (distinct) operator that returned the number of distinct values taken on within each -by()- group (like the function -nvals()- in -egenmore-).
Comment