Learn R Programming

MCMCpack (version 0.4-5)

write.Scythe: Write a Matrix to a File to be Read by Scythe

Description

This function writes a matrix to an ASCII file that can be read by the Sycthe Statistical Library. Scythe requires that input files contain the number of rows and columns in the first row, followed by the data.

Usage

write.Scythe(outmatrix, outfile=NA, overwrite=FALSE)

Arguments

outmatrix
The matrix to be written to a file.
outfile
The file to be written. This can include path information.
overwrite
A logical that determines whether an existing file should be over-written. By default, it protects the user from over-writing existing files.

Value

  • A zero if the file is properly written.

References

Andrew D. Martin, Kevin M. Quinn, and Daniel Pemstein. 2003. Scythe Statistical Library 0.4. http://scythe.wustl.edu.

See Also

write.Scythe

Examples

Run this code
write.Scythe(mymatrix, "myfile.txt")

Run the code above in your browser using DataLab