write_dat: writing R matrix objects as .dat text files
Description
this function writes R matrix objects as .dat text files to be read by Mplus.
Usage
write_dat(ob, file = paste(deparse(substitute(ob)), ".dat", sep = ""), ...)
Arguments
ob
the R-object to be written as .dat file.
file
optionally the name of the .dat file as character - default is 'objectname'.dat.
...
additional parameters passed through.
Value
a .dat text file by default written in the current workspace directory.
Examples
Run this code# NOT RUN {
## writing R-object example1 as example1.dat
# }
# NOT RUN {
data(example1)
write_dat(example1)
# }
Run the code above in your browser using DataLab