Re: [R] Write in file matrices of sifferent size

2009-07-20 Thread Jorge Ivan Velez
Dear Julien, Try sink(): matrixA <- matrix(0,5,4) matrixB <- matrix(1,7,13) matrixList <- list(matrixA,matrixB) names(matrixList) <- c("matrixA", "matrixB") sink("yourname.txt") matrixList sink() See ?sink for more information. HTH, Jorge On Mon, Jul 20, 2009 at 1:02 PM, julien cuisin

Re: [R] Write in file matrices of sifferent size

2009-07-20 Thread jim holtman
use capture.output > matrixA <- matrix(0,5,4) > matrixB <- matrix(1,7,13) > matrixList <- list(matrixA,matrixB) > names(matrixList) <- c("matrixA", "matrixB") > matrixList $matrixA [,1] [,2] [,3] [,4] [1,]0000 [2,]0000 [3,]0000 [4,]00

Re: [R] Write in file matrices of sifferent size

2009-07-20 Thread Steve Lianoglou
Hi, On Jul 20, 2009, at 1:02 PM, julien cuisinier wrote: Hi list, How to save a list content into a text file? Please consider example below, I have two numeric matrices that I bundle into a list & give each list element a name Example: matrixA <- matrix(0,5,4) matrixB <- matrix(1,7,13)

[R] Write in file matrices of sifferent size

2009-07-20 Thread julien cuisinier
Hi list, How to save a list content into a text file? Please consider example below, I have two numeric matrices that I bundle into a list & give each list element a name Example: > matrixA <- matrix(0,5,4) > matrixB <- matrix(1,7,13) > matrixList <- list(matrixA,matrixB) > n