exdat <- data.frame(x = 1:5, alongname = sample( letters[1:3],5, rep=TRUE),
butalongername = sample(LETTERS[1:2],5, rep = TRUE))
y <- runif(5)
strucParseFormula (y ~ x| alongname*butalongername, data = exdat)
# The same
strucParseFormula (y ~ x|., data = exdat)
# The 'data' argument is required with '.'
## Not run:
# strucParseFormula (y ~ x|.)
# ## End(Not run)
Run the code above in your browser using DataLab