Re: [R] Writing Vector to a File

2008-06-23 Thread Duncan Murdoch
On 6/23/2008 9:15 AM, Gundala Viswanath wrote: Dear Philipp and Duncan, I've tried write(as.character(myvec), "output.txt", sep="\n") and writeLines(as.character(myvec), "output.txt", sep="\n") Both yielding same result. 1 1 1 1 1 6241 Is there any other possible explanation, why it

Re: [R] Writing Vector to a File

2008-06-23 Thread Philipp Pagel
On Mon, Jun 23, 2008 at 10:15:53PM +0900, Gundala Viswanath wrote: > I've tried > > > write(as.character(myvec), "output.txt", sep="\n") > > and > > > writeLines(as.character(myvec), "output.txt", sep="\n") > > Both yielding same result. > > >> 1 > >> 1 > >> 1 > >> 1 > >> 1 > >> 6241 > > Is

Re: [R] Writing Vector to a File

2008-06-23 Thread Gundala Viswanath
Dear Philipp and Duncan, I've tried > write(as.character(myvec), "output.txt", sep="\n") and > writeLines(as.character(myvec), "output.txt", sep="\n") Both yielding same result. >> 1 >> 1 >> 1 >> 1 >> 1 >> 6241 Is there any other possible explanation, why it still went wrong? - Gundala Vis

Re: [R] Writing Vector to a File

2008-06-23 Thread Philipp Pagel
> I want to print this vector into a file > > > myvec > [1] --Control --Control --Control --Control --Control HBA2 HBA1 > [8] HBA1 --Control HBB --Control HBB HBA1 MBP [...] > > However using this command: > write(myvec, "output.txt", sep="\n") > > I get this inste

Re: [R] Writing Vector to a File

2008-06-23 Thread Duncan Murdoch
Gundala Viswanath wrote: Dear experts, I try not to trouble the list again after this question. I want to print this vector into a file myvec [1] --Control --Control --Control --Control --Control HBA2 HBA1 [8] HBA1 --Control HBB --Control HBB HBA1 MBP

[R] Writing Vector to a File

2008-06-23 Thread Gundala Viswanath
Dear experts, I try not to trouble the list again after this question. I want to print this vector into a file > myvec [1] --Control --Control --Control --Control --Control HBA2 HBA1 [8] HBA1 --Control HBB --Control HBB HBA1 MBP [15] --Control HBA1 HBA2