search for: name_of_the_object

Displaying 1 result from an estimated 1 matches for "name_of_the_object".

2007 Jun 09
1
write.table: last line should differ from usual eol
Dear R-Team, I have a problem with writing an array to (for example) a .txt-file. Because of the .txt-file must be read from another programm (OPL ILOG), the syntax of the output must be from a special form: name_of_the_object = [ [1,2, ... ], [1,...], ... ]; I think it's easier to understand with a small example: X<-array(1:4,c(2,2)) should be written as: X = [[1,3], [2,4]]; I have (until now) used the following: write("X=[[",file=filename) write.table(X,file=filename,sep=","...