summarytools icon indicating copy to clipboard operation
summarytools copied to clipboard

Suggestion: Distinct count of factor/character column

Open leok31 opened this issue 7 years ago • 1 comments

It would be useful to have a distinct count of unique values of either factor or character column. For example, if I have a column labeled email, I would like to know how many unique emails I have in that column. Here is an example of my output. When the field type is Integer, then you get a distinct could of values, but when it's a character/factor then it counts frequency but not count of unique values.

1

Thank you

leok31 avatar Nov 27 '18 22:11 leok31

Sorry for late response... This information is indirectly given... For instance the email variable has 19974 + 3 = 19977 distinct values. Adding it would create redundancy in many cases and the summaries are already packed with information, I wouldn't want them to become overcrowded. I'll leave open for a while and see if other users would also like to have that feature.

dcomtois avatar Feb 20 '19 19:02 dcomtois