Displaying 20 results from an estimated 137 matches for "agrep".
Did you mean:
grep
2010 Nov 17
2
Bug in agrep computing edit distance?
I posted this yesterday to r-help and Ben Bolker suggested reposting it
here...
Dickison, Daniel <ddickison <at> carnegielearning.com> writes:
>
> The documentation for agrep says it uses the Levenshtein edit distance,
> but it seems to get this wrong in certain cases when there is a
> combination of deletions and substitutions. For example:
>
> > agrep("abcd", "abcxyz", max.distance=1)
> [1] 1
>
> That should've been a n...
2010 Nov 16
1
Bug in agrep computing edit distance?
The documentation for agrep says it uses the Levenshtein edit distance,
but it seems to get this wrong in certain cases when there is a
combination of deletions and substitutions. For example:
> agrep("abcd", "abcxyz", max.distance=1)
[1] 1
That should've been a no-match. The edit distance betw...
2012 Jan 19
1
bug en funcion 'agrep'
Estimados R-users:
Estoy intentando usar la función 'agrep' para hacer búsquedas en
cadenas de texto. El parámetro max.distance permite controlar la
medida de aproximación de búsqueda de la función de Levenshtein. No
obstante, cuando hago búsquedas específicas no obtengo siempre el
resultado deseado y no se si es un bug o que no entiendo bien e...
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...
2012 Dec 11
1
How do you use agrep inside a loop
Hi all.
This is my first message at R-help...so I'm hoping I have some beginner's
luck and get some good help for my problem!
FYI I have just started using R recently so my knowledge of R is pretty
preliminary.
Okay here is what I need help with - I need to know how to use agrep in a
for loop.
I need to compare elements of a vector of names with other elements of the
same vector.
However if I use something like this:
for(i in 1:length(test1)-1)
{
for(j in i+1:length(test1))
{
result[[i]][j] <- agrep(test1[i], test1[j], ignore.case = TRUE, value =
TRUE, max.dis...
2004 Feb 11
6
AGREP
Hi all, I have two questions
1 - I have the version 1.4.1 of R, and it doesn't have the 'agrep'
function in the base library. Is there a way to make this funcion
avaliable in R 1.4.1? I mean, how to 'copy' it from R 1.8.1 and 'paste'
it in R 1.4.1?
2 - The AGREP function doesn't give me the Levenshtein distance (edit
distance). Is there a function in R that does it?...
2010 Nov 09
1
agrep pmatch recursive???
...list. What I want to
do is to match file names in the exclude list to those in the dataset list and remove them to create a subset_dataset, composed
of all the dataset files minus the files in the exclude list. Since the file names are different, it seems that i have to use
a function such as agrep, and have gotten this to work if I feed in individual file names:
> agrep("10-10-29a-13", dataset, value=TRUE, max.distance=0)
[1] "B/10-10-29a-13.cdf"
However, I don't want to do this manually for each file on the exclude list - I want to do so for each character strin...
2008 May 29
1
help (using ?) does not handle trailing whitespace (PR#11537)
> ?agrep
>
Results in:
No documentation for 'agrep ' in specified packages and libraries:
you could try 'help.search("agrep ")'
There is white space after agrep, that ? doesn't ignore.
--please do not edit the information below--
Version:
platform = i486-pc-linux-gn...
2009 Jun 30
1
possible agrep bug; R 2.9.1, Mac OS X 10.5 (PR#13789)
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....
2004 Feb 13
1
RES: AGREP
"Marcos Sanches" <marcos.sanches at ipsos-opinion.com.br> wrote:
Ls1<-length(s1)
Ls2<-length(s2)
for ( p in 1:ls1){
for (q in 1:ls2){
t1<-levenshteinFast(s1[p],s2[q])
...
Ls1=42000
Ls2=70000
I think I will wait for months untill this program ends. Do you have any
sugestion to increase the speed?
The first suggestion has to be "search HARD in the
2008 Aug 26
2
String search: Return "closest" match
...;Hamburg" but the record I am searching for is "Hamburg OTM" and then we still want to find "Hamburg". Or maybe the list contains "Hamburg" and "Hamberg" but we are searching for "Hamburg" and thus only this should this one should be returned.
agrep() returns all "close" matches but unfortunately does not return the degree of closeness otherwise selection would be easy.
Is there such a function already implemented?
Thanks a million for your help,
Werner
__________________________
verf?gt ?ber einen herausragenden Schutz gegen M...
2008 Jun 02
0
(PR#11537) help (using ?) does not handle trailing whitespace
...#39; has become different from help() more and more,
and it is currently the most urgent open issue in ESS,
that ESS should become much smarter in dealing with '?', the
various 'type ? topic' version and new '??', etc.
Martin Maechler, ETH Zurich
BDR> Using ?"agrep " will fail in R, but that seems correct as there is no
BDR> topic "agrep ".
BDR> On Fri, 30 May 2008, Tim Hesterberg wrote:
>> By whitespace, I mean either a space or tab (preceding the newline).
>>
>> I'm using ESS:
>>...
2003 Oct 15
2
help.search in trouble with R-patched ?
...unless its me missing something...
> help.search("prompt", agrep=F)
Error: couldn't find function ".class1"
> traceback()
12: initialize(value, ...)
11: initialize(value, ...)
10: new("ObjectsWithPackage", value, package = pkg)
9: metaNameUndo(unique(these), prefix = "M", searchForm = searchForm)
8: methods:::getGenerics(ns)...
2005 Nov 07
0
[LLVMdev] LLVM 1.6 Release Branch
...ource:
Applications/d/make_dparser: llc, cbe, jit
Applications/hexxagon/hexxagon: llc, cbe, jit
Benchmarks/MallocBench/gs/gs: llc, cbe
Benchmarks/Prolangs-C/cdecl/cdecl: llc, cbe, jit
Benchmarks/Prolangs-C/football/football: cbe
Benchmarks/Prolangs-C/gnugo/gnugo: llc, cbe, jit
Benchmarks/Prolangs-C/agrep/agrep: llc
Benchmarks/Prolangs-C/fixoutput/fixoutput: llc, cbe
Benchmarks/Prolangs-C/gnugo/gnugo: llc, cbe, jit (looks like ld hung)
Benchmarks/mediabench/gsm/toast/toast: llc
Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg: jit
Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode: llc, cbe, jit
Regressions...
2011 Jul 14
1
(no subject)
...urns a data frame with the rows that contain that phrase (for a particular column).
Search<-function(term, dataframe, column.name, variation=.02,...){
te<-substitute(term)
te<-as.character(te)
cn<-substitute(column.name)
cn<-as.character(cn)
HUNT<-agrep(te,dataframe[,cn],ignore.case =TRUE,max.distance=variation,...)
dataframe[c(HUNT),]
}
I would like to modify this to search all columns for the phrase keep only the unique rows and return a data frame for any columns (minus repeated rows) that contain the phrase.
I assumed this would be an e...
2005 Nov 02
2
[LLVMdev] LLVM 1.6 Release Branch
Tanya Lattner wrote:
>
>> 1. I'm still looking for volunteers to test MacOS X and Solaris.
>> If you'd like to volunteer, please email the list to let us know.
>
>
> I'll do minimal testing on Sparc. I'm not going to look into any
> regressions though since no one has been really watching Sparc since I
> graduated and I am sure there are
2010 Oct 18
3
remove numbers from string of characters
Greetings
I want to remove numbers from a string of characters that identify
sites so that I can merge two data frames. For example, a site in one
frame is called "001a Frozen Niagara Entrance" whereas the same site in
the other data frame is called "Frozen Niagara Entrance". It seems to me
the easiest thing to do would be to remove the numbers from the first data
2013 Jan 14
4
Grabbing Specific Words from Content (basic text mining)
Hi all,
Suppose I have a data frame with mixed content (name age and address).
a<-"Name: John Smith Age: 35 Address: 32, street, sub, something"
b<-data.frame(a)
1. The question is I want to extract the name age and
address separately from this data frame (containing potentially more
people).
2. Also just incase I have to deal with it how would the syntax change if I
had
2008 Mar 03
2
esercizio
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080303/c747f103/attachment.pl
2009 Nov 24
1
merge on non-identical names
Greetings,
I need to conduct a merge on two databases containing information on
organizations, but the organization names are often non-identical and there
is no common unique identifier. Does anyone know a good way to calculate a
similarity measure on two names, or even better is there a natural language
matching function in an R package? I did some searches on this but must not
know the right