[Rd] possible agrep bug; R 2.9.1, Mac OS X 10.5 (PR#13789)
e.leoni at gmail.com
e.leoni at gmail.com
Tue Jun 30 18:00:09 CEST 2009
Same behavior was noted on R 2.9.0 OS X and WIndows.
> t(sapply(seq(0.01, .99, length=20), function(x) c(x, length(agrep("Staatssekretar im Bundeskanzleramt","Bundeskanzler",max.distance=x)))))
[1,] 0.01000000 0
[2,] 0.06157895 0
[3,] 0.11315789 0
[4,] 0.16473684 0
[5,] 0.21631579 0
[6,] 0.26789474 0
[7,] 0.31947368 0
[8,] 0.37105263 0
[9,] 0.42263158 0
[10,] 0.47421053 0
[11,] 0.52578947 0
[12,] 0.57736842 0
[13,] 0.62894737 1
[14,] 0.68052632 1
[15,] 0.73210526 1
[16,] 0.78368421 1
[17,] 0.83526316 1
[18,] 0.88684211 0 ## NOTE that there is a match reported with a
threshold _lower_ than this!
[19,] 0.93842105 0
[20,] 0.99000000 1
--please do not edit the information below--
Version:
platform = i386-apple-darwin8.11.1
arch = i386
os = darwin8.11.1
system = i386, darwin8.11.1
status =
major = 2
minor = 9.1
year = 2009
month = 06
day = 26
svn rev = 48839
language = R
version.string = R version 2.9.1 (2009-06-26)
Locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
Search Path:
.GlobalEnv, package:stats, package:graphics, package:grDevices,
package:utils, package:datasets, package:methods, Autoloads,
package:base
More information about the R-devel
mailing list