Hi all,
my problem is, that i´d like to delete just specific duplicates of a variable, but not all duplicates. Of course I could do it with repeatedly typing "duplicates drop if var_xy == x1" for all values
but I´m searching for a more elegant solution. I thought about solving it with a forvalues command like:
forvalues var_xy=1 5 6 9 ... {
duplicates drop
}
But forvalues isn´t working for single digits.
If anyone has an idea how to solve this problem, please let me know!
Thanks
Anna
my problem is, that i´d like to delete just specific duplicates of a variable, but not all duplicates. Of course I could do it with repeatedly typing "duplicates drop if var_xy == x1" for all values
but I´m searching for a more elegant solution. I thought about solving it with a forvalues command like:
forvalues var_xy=1 5 6 9 ... {
duplicates drop
}
But forvalues isn´t working for single digits.
If anyone has an idea how to solve this problem, please let me know!
Thanks
Anna
Comment