Hello,
I have a suffix, "_t1" that I would like to remove from all of my variables. Is there a handy set of syntax to do this for all of my variables at once rather than having rename them all one by one?
Thanks in advance!
Thank you Rich! I actually discovered that you can do "find/replace" under the variable view tab. When you highlight the column with all the variable names and press control F, you can do a replace "_t1" with a blank, and that worked.
On Mon, 23 Aug 2021 13:01:21 -0700 (PDT), winterversion
<paul...@hotmail.com> wrote:
Thank you Rich! I actually discovered that you can do "find/replace" under the variable view tab. When you highlight the column with all the variable names and press control F, you can do a replace "_t1" with a blank, and that worked.Great! You improved on the solution! (at least, for the
one-time requirement).
I'm thinking, there is a potential advantage of the solution
done by tedious syntax -- In my experience of analyzing data
from other people, it is not uncommon for them to want to
edit some values in the set, or to add a few cases... or even
do the whole thing with some other data. Having syntax
(a) documents the process and (b) allows for instant re-runs.
Leaving everything useful in (saved) syntax is a good idea in
the long run, even if you have interactive experiments that you
throw away.
--
Rich Ulrich
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 83:32:15 |
Calls: | 6,495 |
Calls today: | 6 |
Files: | 12,096 |
Messages: | 5,276,833 |