Skip to content
Prev 214955 / 398500 Next

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:
The third argument has been stuck immediately after the first.  The same
thing happens with cat() or c(). What's going on?

Thanks,
Jeff