separateHyphens: Separate Hyphenated Variable Strings
Description
This code is a simplified form of expandCmd from the lavaan package.
It separates hyphenated variable strings into a list of vectors, while ignoring
hyphens that may be used in numbers.
Usage
separateHyphens(cmd)
Value
The character string if no hyphens, or a list of vectors if there are hyphens.