View source: R/syntax-as_syntax.R
as_lavaan | R Documentation |
Final stage in the 'tidySEM' workflow for syntax generation:
Convert the tidy_sem
object to lavaan
syntax in tabular format
(see model.syntax
).
as_lavaan(x, ...)
x |
An object of class |
... |
Additional parameters to be passed to and from functions. |
Character vector.
mod <- list(syntax = structure(list(lhs = "x", op = "~", rhs = "y",
free = TRUE, value = "", label = "",
category = "", aspect = ""),
class = "data.frame", row.names = c(NA, -1L)))
class(mod) <- "tidy_sem"
as_lavaan(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.