write_dat: writing R matrix objects as .dat text files

Description Usage Arguments Details Value Examples

View source: R/write_dat.R

Description

this function writes R matrix objects as .dat text files to be read by Mplus.

Usage

1
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.

Details

no details.

Value

a .dat text file by default written in the current workspace directory.

Examples

1
2
3
4
5
6
## writing R-object example1 as example1.dat
## Not run:  
data(example1)
write_dat(example1) 

## End(Not run)

holland documentation built on Sept. 5, 2021, 5:08 p.m.