search for: endpat

Displaying 2 results from an estimated 2 matches for "endpat".

Did you mean: endpath
2006 Jul 17
6
Nested functions
Hi there, I'm having myself a hard time writing an algorithm for finding patterns within a given melody. In a vector I'd like to find ALL sequences that occur at least twice, without having to check all possible patterns via pattern matching. I finally found a solution in a style that I'm used from C, i.e. calling one function from within another. GNU R doesn't seem to like that,
2004 Mar 02
2
Some timings for 64 bit Opteron (ATLAS, GOTO, std)
...: 1 Mar 2004, 15:27 > > tDir <- file.path(Rhome,"tests") > dirLs <- c(tDir, file.path(tDir,"Examples"), > file.path(tDir, list.files(tDir, > pattern="\\.Rcheck$"))) > iniStr <- "^Time elapsed:" > endPat <- "\\.Rout$" > ir <- length(rr <- list()) > for(d in dirLs) { > files <- list.files(d, pattern = endPat) > for(f in files) { > lls <- readLines(file.path(d,f)) > if(length(i <- grep(iniStr, lls))) { >...