Re: [R] Split a string of oneline into 2 lines.

2008-05-14 Thread A Ezhil
Thank you very much. It works ! Ezhil --- Uwe Ligges <[EMAIL PROTECTED]> wrote: > > > A Ezhil wrote: > > Hi, > > > > I am trying to split a string into 2 separate > strings > > in 2 lines. So, tried with > > > > sprintf("%s \n %s", "ID", "Name") > > > > But R prints: [1] "ID \n Name" instea

Re: [R] Split a string of oneline into 2 lines.

2008-05-14 Thread Uwe Ligges
A Ezhil wrote: Hi, I am trying to split a string into 2 separate strings in 2 lines. So, tried with sprintf("%s \n %s", "ID", "Name") But R prints: [1] "ID \n Name" instead of ID Name Is it something I am missing here? Yes, in order to respect teh control character you have to cat()

[R] Split a string of oneline into 2 lines.

2008-05-14 Thread A Ezhil
Hi, I am trying to split a string into 2 separate strings in 2 lines. So, tried with sprintf("%s \n %s", "ID", "Name") But R prints: [1] "ID \n Name" instead of ID Name Is it something I am missing here? Thanks in advance. Best regards, Ezhil __