Skip to content
Prev 23040 / 398502 Next

problem with toString

Why are you using toString?  The main purpose of toString is to
get truncate the character representation of objects: otherwise
as.character would suffice.

The problem you are seeing is in as.character:
[1] "c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, "

and it comes from the cutoff value of 60 in deparse.  I would use

tmp <- deparse(q2, 500)
substring(tmp, 12, nchar(tmp)-1)
On Fri, 30 Aug 2002, Tobias Elze wrote:

            
function toString: It seems not to work for longer