Learn R Programming

aMNLFA (version 1.1.2)

write.inp.file: helper function for writing out Mplus inputs

Description

This function generates the initial itemwise aMNLFA models.

Usage

write.inp.file(df, outfile)

Arguments

df

- the Mplus code to be written out, in a data frame

outfile

- a directory to which the Mplus code should be written

Value

outcharacter - string with slash at the end deleted

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
 wd <- tempdir()
 somestring <- as.data.frame("This is some text which would be written to an Mplus file.")
 write.inp.file(somestring, wd)
 
# }

Run the code above in your browser using DataLab