Announcement

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

  • Compare parts of a string

    Dear statalists,

    I wanted to keep this question separate from the last topic where it was about ordering. The second question is whether I can make a statement if one string contains at least the same words (irrespective of ordering) compared to another. I guess it is best explained with a table:

    Name1 Name2
    David Joe David Joe Henry
    David Joe Joe David Henry

    Then Name2 contains the same information as Name1, just more. Can I assert this with a function / if statement?

    Thanks
    Felix

  • #2
    Also here, the
    indexnot()
    function works well enough. there is some manual checking to do, but I guess that appropiate for these vague associations.

    Comment


    • #3
      Perhaps you can adapt the code I showed in your previous post for comparing the strings for the same words to instead compare for a subset of words.

      Comment

      Working...
      X