Hi. I'm trying to take the values in one variable and find them in another variable:
There is a variable called "Replacement Package". It contains a value if that item was replaced, it is blank if it was not replaced.
I would like to take the replacement package and find the "Package ID" that matches it and then label that "Package ID" as a "replacement"
In other words, the dataset is a list of "Packages" (with ID numbers) some of them are replacement packages and some of them are not. When a package is replaced, a second variable captures which Package replaced it, and then that Package is entered into the list of Packages, but there is no variable that labels a package as a "replacement".
How can I create this variable?
Thanks
There is a variable called "Replacement Package". It contains a value if that item was replaced, it is blank if it was not replaced.
I would like to take the replacement package and find the "Package ID" that matches it and then label that "Package ID" as a "replacement"
In other words, the dataset is a list of "Packages" (with ID numbers) some of them are replacement packages and some of them are not. When a package is replaced, a second variable captures which Package replaced it, and then that Package is entered into the list of Packages, but there is no variable that labels a package as a "replacement".
How can I create this variable?
Thanks
Comment