[R] Using 'cat' on data frame

Gundala Viswanath gundalav at gmail.com
Wed Dec 24 08:35:01 CET 2008


Dear all,

I have the following data frame:

> raw.count
                                    Var1
                 Freq
1     AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   707
2     AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC    14
3     AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT     3

But why when printint it using 'cat', it doesn't print
the desired string "AAA" ?

> cat(raw.count$Var1, "\n")
1 2 3

What's wrong with my cat command above.



- Gundala Viswanath



More information about the R-help mailing list