Hi all!
Should be a simple task, but I don't get the code right...
I want to know (and FLAG) if a record contains a 1 time number or if there are other records with the same number. So I've got a dataset like:
1 text
2 text
2 text
3 text
4 text
4 text
4 text
I want to create a 'FLAG', so I know a number appears more than once in the dataset. The outcome should be something like:
1 text 0
2 text 1
2 text 1
3 text 0
4 text 1
4 text 1
4 text 1
Can anyone help me with this? Thanks!!
Should be a simple task, but I don't get the code right...
I want to know (and FLAG) if a record contains a 1 time number or if there are other records with the same number. So I've got a dataset like:
1 text
2 text
2 text
3 text
4 text
4 text
4 text
I want to create a 'FLAG', so I know a number appears more than once in the dataset. The outcome should be something like:
1 text 0
2 text 1
2 text 1
3 text 0
4 text 1
4 text 1
4 text 1
Can anyone help me with this? Thanks!!