Possible Duplicate:
R: Print list to a text file
ther are two vectors,x1,x2
x1<-1:3
x2<-1:6
i want to write the two vectors into a file named test
in the following format
1 2 3
1 2 3 4 5 6
(one vector in one line in the file)
write(file="c:/test",x1)
write(file="c:/test",x2,append=TRUE,nlines=6)
is there a simple way to do ?