Description Usage Arguments Value Author(s) Examples
The prepareMplusData
function converts an R data.frame object into a tab-delimited file (without header)
to be used in an Mplus input file. The corresponding Mplus syntax, including the data file definition and
variable names, is printed to the console.
1 2 | prepareMplusData(df, filename, keepCols, dropCols, inpfile=FALSE,
interactive=TRUE, overwrite=TRUE)
|
df |
The R data.frame to be prepared for Mplus |
filename |
The path and filename for the tab-delimited data file for use with Mplus. Example: "C:/Mplusdata/data1.dat" |
keepCols |
A character vector specifying the variable names within |
dropCols |
A character vector specifying the variable names within |
inpfile |
Logical value whether the Mplus syntax should be written to the console or to an input file. Defaults to |
interactive |
Logical value indicating whether file names should be selected interactively. If |
overwrite |
Logical value indicating whether data and input (if present) files should be overwritten.
Defaults to |
No value is returned by this function. It is solely used to convert an R data.frame to an Mplus data file.
Michael Hallquist
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.