vz-risk / verisr

R package for working with VERIS data
21 stars 11 forks source link

Roll extra Enumerations into 'other' in getenumCI #14

Closed gdbassett closed 3 years ago

gdbassett commented 6 years ago

'other' in veris currently represents a known but not listed Enumeration. Many times we truncate getenumCI output, usually by length in getjenum.

Given the definition of 'other', when the output of 'getenumCI' is truncated, rather than discard it, if more than one Enumeration had a size but is not listed, they should be rolled into a 'other' category. So truncating to 10 should produce 9 values + 'other'. If 'other' was already in the list, there is no need to reduced the list size from 10 to 9. If other would only contain one value, that should be listed as-is instead of creating an 'other'.

Additionally, we should consider adding the ability to truncate on percentile rather than just length.

gdbassett commented 3 years ago

completed in getenumCI2020()