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

A Ezhil ezhil02 at yahoo.com
Wed May 14 17:37:29 CEST 2008


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



More information about the R-help mailing list