search for: nomatch

Displaying 20 results from an estimated 181 matches for "nomatch".

2010 Sep 03
1
Weird erratic error and illogical error message, could someone explain this?
...s bug, and even cannot cook a reproducible example. Yet, it occurs consistently in a long-running task after a variable period of time. Here is an example: ... my long-running code [as I said, cannot give something simple that produces this bug in a reproducible manner] Error in match(x, table, nomatch = 0L) : formal argument "nomatch" matched by multiple actual arguments > traceback() 6: match(x, table, nomatch = 0L) 5: "factor" %in% attrib[["class", exact = TRUE]] 4: structure(.Internal(Sys.time()), class = c("POSIXt", "POSIXct")) 3: Sy...
2008 Mar 06
1
Argument "nomatch" matched by multiple actual arguments ... %in% -> match?!?
When I run R CMD check R.oo on R v2.7.0 devel (2008-03-04 r44677) on WinXP I get the following error while testing examples: Error in match(x, table, nomatch = 0) : formal argument "nomatch" matched by multiple actual arguments Calls: setMethodS3 -> setMethodS3.default -> %in% -> match Execution halted How is that even possible with: > get("%in%") function (x, table) match(x, table, nomatch = 0) > 0 <environment...
2019 Aug 15
2
Feature request: non-dropping regmatches/strextract
...lows a different behavior. Although this can be implemented in a user-defined function, retaining empty matches facilitates programmatic use, and seems to be something that should be available in base R. It is available, for example, in MATLAB, a comparable array language. Alternatively, perhaps a nomatch (or maybe emptymatch) argument in the spirit of `[.data.table`? That is, an argument nomatch where nomatch = NULL (the default) results in drops for vector outputs and character(0) for list outputs and nomatch = NA results in insertion of NA_character_, and nomatch = '' results in insertion...
2016 Feb 19
2
Grandstream Early Dial
...dn't work immediately, I had to create a second context, or else it was looping between the second and first line. This seems to work: [earlydial] ; Test Early Dial exten => _.,1,Set(l_Extension=${EXTEN}) exten => _.,n,Goto(earlydial2,${l_Extension},1) [earlydial2] exten => _.,n,Goto(noMatch,1) exten => noMatch,1, Incomplete(n) exten => i,1,Goto(noMatch,1) exten => t,1,Goto(noMatch,1) exten => _1XX,1,Verbose(2, Dialed ${EXTEN}) same => n,Playback(extension) same => n,SayDigits(${EXTEN}) same => n,Hangup() Best regards, - -- Jean-Denis Girard...
2016 Feb 19
2
Grandstream Early Dial
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 18/02/2016 11:03, Richard Mudgett a ?crit : > I've been using Grandstream phones for more than 10 years, but onl y > yesterday tried to use Early Dial... and I failed. What is needed on the > Asterisk side to reply 484 to INVITE? Phones are talking to chan_p jsip > on Asterisk-13.7.1. > > > Look into the
2016 Sep 10
1
table(exclude = NULL) always includes NA
Looking at the code of function 'table' in R devel r71227, I see that the part "remove NA level if it was added only for excluded in factor(a, exclude=.)" is not quite right. In is.na(a) <- match(a0, c(exclude,NA), nomatch=0L) , I think that what is intended is a[a0 %in% c(exclude,NA)] <- NA . So, it should be is.na(a) <- match(a0, c(exclude,NA), nomatch=0L) > 0L or is.na(a) <- as.logical(match(a0, c(exclude,NA), nomatch=0L)) . The parallel code is.na(a) <- match(a0, exclude...
2019 Aug 15
0
Feature request: non-dropping regmatches/strextract
...though this can be > implemented in a user-defined function, retaining empty matches facilitates > programmatic use, and seems to be something that should be available in > base R. It is available, for example, in MATLAB, a comparable array > language. > > Alternatively, perhaps a nomatch (or maybe emptymatch) argument in the > spirit of `[.data.table`? That is, an argument nomatch where nomatch = NULL > (the default) results in drops for vector outputs and character(0) for list > outputs and nomatch = NA results in insertion of NA_character_, and nomatch > = ''...
2009 Oct 14
2
Getting indeices of intersecting elements.
Hi, Is there a command to get the indices of intersecting elements of two vectors as intersect() will give the elements and not its indices. Thanks in advance. Praveen Surendran School of Medicine and Medical Sciences University College Dublin Belfield, Dublin 4 Ireland. [[alternative HTML version deleted]]
2010 Aug 05
4
A %nin% operator?
...; qf.b <- subset(qf, !(pubid %in% c(104, 106, 107, 108))) and pretty soon my code looks like fingernail clippings (or Lisp) and I'm thinking about precedence rather than my original task. So I write a %nin% operator which I define as: > `%nin%` <- function (x, table) match(x, table, nomatch = 0L) == 0L and then I'm happy again. I wonder, would something like this find a home in core R? Or is that too much syntactic sugar for your taste? -- Ken Williams Sr. Research Scientist Thomson Reuters Phone: 651-848-7712 ken.williams at thomsonreuters.com
2007 May 02
2
I need help
hello, I need help because I don't understand the syntaxe "else" how can I write it for example I writed a script to cut missings values and I have errors > if(na==length(C)){ + pos=match(0,match(donGeno[[na-1]],donGeno[[na]],nomatch=0)) + for(k in 1:(na-1)) { + if(pos==1) {donGeno[[k]] <- donGeno[[k]][2:C[k]]} + if(pos==C[k]){donGeno[[k]] <- donGeno[[k]][1:(C[k]-1)]} + else{donGeno[[k]] <- c(donGeno[[k]][1:(pos-1)],donGeno[[k]][(pos+1):C(k)])} +...
2024 Sep 16
1
findInterval
...l` returns an index it is natural that the next step be to use the index and it is also common that we want a result that is the same length as the input. The extra step here is to convert the 0 which `findInterval` hard codes as missing to NA. If, like `match`, the `findInterval` function had a `nomatch=` argument we could have written this as follows which is shorter, more understandable and avoids the need for zero2na: # if nomatch= were implemented seek |> transform(result = y[ findInterval(x, nomatch = NA) ] ) |> _$result -- Statistics & Software Consulting GKX Group,...
2000 Nov 20
2
precision, incorrect(?) tapply() NA's
...() incorrectly assigned the 5th entry in r to the first element of unique(r) -- not the 2nd one. (We also see that index 2 does not appear on the output of match() at all.) Thus match() seems to be introducing the round off as it coerces its arguments to character: > match function (x, table, nomatch = NA) .Internal(match(as.character(x), as.character(table), nomatch)) I'm enclosing the "r" and "rec.p" vectors as binary R data. I wish I could send the ASCII versions, but then I would be introducing rounding and the example above could not be reproduced. By the way, I...
2000 Nov 20
2
precision, incorrect(?) tapply() NA's
...() incorrectly assigned the 5th entry in r to the first element of unique(r) -- not the 2nd one. (We also see that index 2 does not appear on the output of match() at all.) Thus match() seems to be introducing the round off as it coerces its arguments to character: > match function (x, table, nomatch = NA) .Internal(match(as.character(x), as.character(table), nomatch)) I'm enclosing the "r" and "rec.p" vectors as binary R data. I wish I could send the ASCII versions, but then I would be introducing rounding and the example above could not be reproduced. By the way, I...
2010 Jun 29
2
POSIXlt matching bug
...the same length as 'x'". I would normally suggest that we add a POSIXlt method for match that converts x into POSIXct or character first. However, match does not appear to be generic. Below is a possible rewrite of match that appears to work as desired. match <- function(x, table, nomatch = NA_integer_, incomparables = NULL) .Internal(match(if(is.factor(x)||inherits(x, "POSIXlt")) as.character(x) else x, if(is.factor(table)||inherits(table, "POSIXlt")) as.character(table) else table, nomatch, incomparables)) That said...
2009 Jun 12
0
.doTrace problem with eval.parent(substitute(expr)) vs. lazy evaluation of expr
...On entry: match(x = "character(26)", table = exclude) On entry: match(x = "character(26)", table = levels) On entry: match(x = "factor(26)", table = c("c", "d", "e")) On entry: match(x = "character(26)", table = table, nomatch = nomatch, incomparables = incomparables) On entry: match(x = "integer(2)", table = c("c", "d", "e")) On entry: match(x = "character(1)", table = c("c", "d", "e")) This fails in R > for(x in list(...
2007 May 02
1
missing values
...171 there are a missing value for the vector donGeno[[2]] in fact there aren't the value 65125 and I wanna cut this value in the others vectors and I tried to do this as follow C <- vector() for(k in LR) { C[k] <- length(donGeno[[k]]) } print(C) na=match(rep(0,length(C)-sum(match(C,C[1],nomatch=0))),match(C,C[1],nomatch=0)) #print(na) if(na==length(C)){ pos=match(0,match(donGeno[[na-1]],donGeno[[na]],nomatch=0)) for(k in 1:(na-1)) { donGeno[[k]] <- donGeno[[k]][1:(na-1)] } } else{ pos=match(0,match(donGeno[[na+1]],donGeno[[na]],nomatch=0)) for(k in 1:(.....)) } but I wonder if there...
2008 Jun 17
1
Error
My code seems to break out with error below for every 1000 files it processes. Then I re-run from the last file where it errored out and it runs without any bugs. Any ideas what might cause error below? Error in match(x, table, nomatch = 0) : formal argument "nomatch" matched by multiple actual arguments -- View this message in context: http://www.nabble.com/Error-tp17936173p17936173.html Sent from the R help mailing list archive at Nabble.com.
2022 Mar 14
1
Icecast 2.5 beta3 release
...rol:`-header. * Improved CORS support * Network * Support for new listen socket type `virtual` * Improved listen URL reporting * Per listen socket HTTP headers * Prefer IPv6 when IPv4-mapped is supported for listen sockets * Authentication * Per role matches: `match-web`, `nomatch-web`, `match-admin`, `nomatch-admin`, `match-method`, and `nomatch-method` * Per listen socket authentication * Client altering via authentication including redirection * Allow client altering on authentication fail and acl deny * New backend `enforce_auth` to improve performa...
2022 Mar 14
1
Icecast 2.5 beta3 release
...rol:`-header. * Improved CORS support * Network * Support for new listen socket type `virtual` * Improved listen URL reporting * Per listen socket HTTP headers * Prefer IPv6 when IPv4-mapped is supported for listen sockets * Authentication * Per role matches: `match-web`, `nomatch-web`, `match-admin`, `nomatch-admin`, `match-method`, and `nomatch-method` * Per listen socket authentication * Client altering via authentication including redirection * Allow client altering on authentication fail and acl deny * New backend `enforce_auth` to improve performa...
2019 Aug 15
1
Feature request: non-dropping regmatches/strextract
...gt; implemented in a user-defined function, retaining empty matches facilitates >> programmatic use, and seems to be something that should be available in >> base R. It is available, for example, in MATLAB, a comparable array >> language. >> >> Alternatively, perhaps a nomatch (or maybe emptymatch) argument in the >> spirit of `[.data.table`? That is, an argument nomatch where nomatch = NULL >> (the default) results in drops for vector outputs and character(0) for list >> outputs and nomatch = NA results in insertion of NA_character_, and nomatch >&g...