Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread David Winsemius
On Jul 7, 2010, at 1:26 PM, Gabor Grothendieck wrote: On Wed, Jul 7, 2010 at 1:25 PM, Gabor Grothendieck wrote: On Wed, Jul 7, 2010 at 1:15 PM, Immanuel wrote: Hey, big help, thanks! One little question remains, if I create more then one string and table ... - # gener

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Immanuel
Hey, saved my day. Now can watch the football semi-final thanks > Turn them into factors with the appropriate levels before counting > them with table: > > # generate an input string n long > set.seed(123) > n <- 300 > lets_1 <- paste(sample(letters[1:5], n, replace = TRUE), collapse = "") > lets_2

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Gabor Grothendieck
On Wed, Jul 7, 2010 at 1:25 PM, Gabor Grothendieck wrote: > On Wed, Jul 7, 2010 at 1:15 PM, Immanuel wrote: >> Hey, >> >> big help, thanks! >> One little question remains, if I create >> more then one string and table ... >> - >> >> # generate an input string n long >> set.see

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Gabor Grothendieck
On Wed, Jul 7, 2010 at 1:15 PM, Immanuel wrote: > Hey, > > big help, thanks! > One little question remains, if I create > more then one string and table ... > - > > # generate an input string n long > set.seed(123) > n <- 300 > lets_1 <- paste(sample(letters[1:5], n, replace =

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Immanuel
Hey, big help, thanks! One little question remains, if I create more then one string and table ... - # generate an input string n long set.seed(123) n <- 300 lets_1 <- paste(sample(letters[1:5], n, replace = TRUE), collapse = "") lets_2 <- paste(sample(letters[1:5], n, replace

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Gabor Grothendieck
On Wed, Jul 7, 2010 at 12:25 PM, Immanuel wrote: > Hello together, > > > I'm looking for advice on how to do some tests on strings. > What I want to do is the following: > > (just an example, real strings/sequence are about 200-400 characters long) > given set of Strings: > > String1 abcdefgh > St