I have a data.frame that is manually created like:
a = data.frame(a = c(1,3,4), b = c(1,3,4))
> a
a b
1 1 1
2 3 3
3 4 4
I want to convert the elements in the data.frame to string, but I got this:
> toString(a)
[1] "c(1, 3, 4), c(1, 3, 4)"
anyone helps?
a similar question has been asked and answered, so we probably can change the question to why toString does not work properly on data.frame?
And the accepted answer gives some clue...