[R] writing a fomated matrix

Roger Bivand Roger.Bivand at nhh.no
Mon Feb 5 13:01:34 CET 2007


On Mon, 5 Feb 2007, Milton Cezar Ribeiro wrote:

> Hi R-gurus,
> 
> I have a 1000x1000 matrix and I would like to write it in a ASC file,
> where each row from my matrix are written in a separated line. I tryed
> write() function, but it don´t work fine to me.

RSiteSearch("write matrix", restrict = c("functions", "docs"))

takes you to:

library(MASS)
?write.matrix

which ought to get you there. But:

?write

would also have shown that there is an ncolumns argument - using that 
would probably also help.

> 
> any idea?
> 
> Kind regards,
> 
> Miltinho
> 
> __________________________________________________
> 
> 
> 	[[alternative HTML version deleted]]
> 
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-help mailing list