cscanx | R Documentation |
Reads in a matrix from file (no header, no row-names, no NA's, space or tab-delimiter) and returns the according R-matrix. No Need to specify dimensions.
cscanx(path)
path |
character - location of the file to be read ("/path/to/file") |
Matrix shaped as in the file
# random matrix
X <- matrix(rnorm(10,5),10,5)
# write that matrix to a file
write.table(X,file="X",col.names=FALSE,row.names=FALSE,quote=FALSE)
# read in the matrix to object Z
Z <- cscanx("X")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.