Learn R Programming

MCMCpack (version 1.7-1)

read.Scythe: Read a Matrix from a File written by Scythe

Description

This function reads a matrix from an ASCII file in the form produced by the Scythe Statistical Library. Scythe output files contain the number of rows and columns in the first row, followed by the data.

Usage

read.Scythe(infile = NA)

Value

A matrix containing the data stored in the read file.

Arguments

infile

The file to be read. This can include path information.

References

Daniel Pemstein, Kevin M. Quinn, and Andrew D. Martin. 2007. Scythe Statistical Library 1.0. http://scythe.wustl.edu.s3-website-us-east-1.amazonaws.com/.

See Also

write.Scythe

Examples

Run this code

  if (FALSE) {
  mymatrix <- read.Scythe("myfile.txt")
  }

Run the code above in your browser using DataLab