[R] How do I print a string without the initial [1]?

Benilton Carvalho bcarvalh at jhsph.edu
Wed Apr 18 23:35:18 CEST 2007


 > x="a\n"
 > cat(x)
a

On Apr 18, 2007, at 5:31 PM, steve wrote:

> If I print a sting I get an initial [1]:
>
>> xx="a"
>> xx
> [1] "a"
>
>
> How do I get it to print just
>
> "a"



More information about the R-help mailing list