Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to list all unique values in the variable?

    Hello,

    I see 'unique' or 'distinct' commands will show the total number of unique values in the variable, but they don't actually list each of the unique values.

    I'd like to see all unique characteristics from the particular variable (type: string), excluding all duplicated one. Is there a command for this?

    Thank you!

  • #2
    unless you have too many distinct values (see "help limits"), tabulate will do this

    another way to go is -contract-; see "help contract"

    added in edit: a third way to delete the duplicates (help duplicates) and just use -list-

    Comment


    • #3
      If what you need is to spot duplicates, the command - duplicates list - shall do the trick.
      Best regards,

      Marcos

      Comment


      • #4
        Code:
        help levelsof

        Comment


        • #5
          Thank you so much!

          Comment

          Working...
          X