Re: [R] Performance of concatenating strings

2007-10-31 Thread Tamara Steijger
Hi, thanks for the fast answers. I'm sorry, if I was not clear enough in my question. The problem we are trying to solve is LetterDisplay. There is already a heuristic implemented in the multcompView package of Hans-Peter Piepho. We implemented an exact fixed parameter tractable implementat

Re: [R] Performance of concatenating strings

2007-10-31 Thread hadley wickham
On 10/31/07, Tamara Steijger <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to ask how the paste(S1, S2, sep="") function internally > works. Are the two stings copied to a new String? I'm not 100% sure, but I'd suspect so, as this is the default behaviour in pretty much every programming langu

Re: [R] Performance of concatenating strings

2007-10-31 Thread jim holtman
How often are you doing it? How large are your strings? What exactly are you doing with them? Have you considered keeping them in a list and then using 'do.call' to do the concatenation all at once? Have you used Rprof on your program to see where time is being spent? How much memory, and OS,