Displaying 1 result from an estimated 1 matches for "tp1691133p1691198".
Did you mean:
tp1691133p1691133
2010 Mar 25
6
c(), or cat(), or paste(), all cause unwanted reordering
Hi,
I would expect the following:
paste(
as.character( cat( rep( ".", 2 ) ) ),
"a string",
as.character( cat( rep( ".", 3 ) ) )
);
to yield this string: ". . a string . . .", but instead it yields this:
> . .. . .[1] " a string "
The third argument has been stuck immediately after the first. The same
thing happens with cat() or c().