Creating similar variable from old information

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

More specifically for you, it would be sufficient to run your workflow up until the point where you would have run the code you pasted here, i.e. when you have gss1000 but havent adjusted it yet, and provide a 20record sample. Therefore the code you would use to provide this to the forum would be

dput(head(gss1000,n=20))

Then, format your forum posts by using triple backticks like so :

```
my code looks nice