Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print character string without indices in R [duplicate]

Tags:

I have looked at the answers to Print list without line numbers in R and Prevent print() from outputting list indices in R, but neither seems to prevent R from printing a character string with indices are the left.

Input:

foo = "10 & 1.832171"    
print(foo, row.names=F, quote=F)  

Output:

[1] 10 & 1.832171

Desired Output:

 10 & 1.832171

Is this possible at all?

like image 742
merlin2011 Avatar asked Nov 13 '13 00:11

merlin2011


1 Answers

> foo = "10 & 1.832171"       
> cat(foo)
10 & 1.832171
like image 147
Dason Avatar answered Sep 25 '22 21:09

Dason