[Rd] write function (PR#10953)

efremov at mpiz-koeln.mpg.de efremov at mpiz-koeln.mpg.de
Fri Mar 14 11:45:05 CET 2008


Full_Name: Alexander Yephremov
Version: R 2.6.2 GUI 1.23 (4932) (4932)
OS: Mac OS X 10.4 
Submission from: (NULL) (193.174.239.91)


Hi!

> array <- 0*1:50
> array
 [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
> write(array, "array.file", sep=",")

This is how array.file looks:

0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0
0,0,0,0,0

As you see, the resulting array.file is organized in 5 columns although, I think
there must be a vector. It is the same with any sep.
Best regards,
Alexander



More information about the R-devel mailing list