Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73255

Counting the number of non-distinct identifiers in two variables

$
0
0
Hi,

I have two variables, Partner1 and Partner2, which contain unique passport numbers in string format. An example:
Partner 1 Partner 2
E101 E100
E102 E103
E100 E101
E105 E106
E107 E108
Over here, we have 6 observations. However, we see that E100 and E101 are "repeated" between the two variables. Is there a way to count the number of repeated string variables in two variables? Thank you.

Viewing all articles
Browse latest Browse all 73255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>