Hi there,
My dataset has multiple responses and I just need the first response for analysis. So all text after the | characters can be deleted.
I have 100 variables named OtherIssue_1 to OtherIssue_100 and would be good to have a loop rather than 100 pieces of syntax...but no idea how to do that.
OtherIssue_1
32
36
106|96
88
72|55
I want to look like this:
32
36
106
88
72
Many thanks
Erin
Thanks Bruce,
That works. Any way to change it to override the existing responses rather than a new variable?
On Thu, 11 Jun 2020 16:58:12 -0700 (PDT), erin.psychology@gmail.com
wrote:
Thanks Bruce,
That works. Any way to change it to override the existing responses rather than a new variable?
Please, don't do that.
It is bad practice to re-use the same name for any variable
when you substantially change it. Avoid confusion (and error)
a few years later, or for when someone else uses the files.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:25:46 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,100 |
Messages: | 5,277,163 |