View source: R/utilityFunctions.R
separateHyphens | R Documentation |
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.
separateHyphens(cmd)
cmd |
A character string |
Note that this is an internal function only.
The character string if no hyphens, or a list of vectors if there are hyphens.
Michael Hallquist revised by Joshua Wiley
MplusAutomation:::separateHyphens("x1x4")
MplusAutomation:::separateHyphens("x1-x4")
MplusAutomation:::separateHyphens("x1-x4; x1*-1; v1-v3;")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.