Re: [R] stalled loop

2007-09-16 Thread jim holtman
If I understand what you are trying to do is to find duplicated values of rearrangements of words. If that is the case, this is probably faster since your final loop is removed by using "duplicated". Most of the time is in the sapply function. > a <- c("superman", "xman", "spiderman", "wolfman",

Re: [R] stalled loop

2007-09-16 Thread Gavin Simpson
On Sun, 2007-09-16 at 08:46 -0700, kevinchang wrote: > Hey everyone, > > The code I wrote executes correctly but is stalled seriously. Is there a > way to hasten execution without coming up with a brand new algorithm > ?please help. Thanks a lot for your time. > > > #a simplified version of th

Re: [R] stalled loop

2007-09-16 Thread jim holtman
You will have to supply a lot more information than you have. Is it a memory problem (are you paging), is it a function of your data structure, is it your algorithm, etc. Please follow the guidelines: "provide commented, minimal, self-contained, reproducible code." On 9/16/07, kevinchang <[EMAIL