isequal(proportions([1, 2, 2, 3, 4, 5, 5, 5, 7, 7], s1), counts([1, 2, 2, 3, 4, 5, 5, 5, 7, 7], s1)/length([1, 2, 2, 3, 4, 5, 5, 5, 7, 7]))
when s1 = span([1, 2, 2, 3, 4, 5, 5, 5, 7, 7])
gives false while
proportions([1, 2, 2, 3, 4, 5, 5, 5, 7, 7], s1)
gives equal vector as of counts([1, 2, 2, 3, 4, 5, 5, 5, 7, 7], s1)/length([1, 2, 2, 3, 4, 5, 5, 5, 7, 7]))
and both are of same types.