search for: oooxxxooo

Displaying 1 result from an estimated 1 matches for "oooxxxooo".

Did you mean: oooxxooo
2006 Jan 05
1
Pb with agrep()
Happy new year everybody, I'm getting the following while trying to use the agrep() function: > pattern <- "XXX" > subject <- c("oooooo", "oooXooo", "oooXXooo", "oooXXXooo") > max <- list(ins=0, del=0, sub=0) # I want exact matches only > agrep(pattern, subject, max=max) [1] 4 OK > max$sub <- 1 # One allowed substitution > agrep(pattern, subject, max=max) [1] 3 4 OK > max$sub <- 2 # Two allowed substitutions > agrep(pattern,...