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

View source: R/aMNLFA_sample.R View source: R/write_inp_file.R

write.inp.fileR Documentation

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


 ## 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)
 
## End(Not run)

aMNLFA documentation built on March 18, 2022, 6:18 p.m.