Displaying 20 results from an estimated 4000 matches similar to: "precision, incorrect(?) tapply() NA's"
2009 Sep 15
2
How to remove 'NA's?
Hi,
> match(c(3,4), c(3,2,1))
[1] 1 NA
The above result has 'NA' in. Is there a way to make 'match' does not
produce any 'NA's?
Regards,
Peng
2010 Sep 03
1
Weird erratic error and illogical error message, could someone explain this?
Hello,
It's several days I try to track this 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
2019 Aug 15
2
Feature request: non-dropping regmatches/strextract
I do think keeping the default behavior is desirable for backwards compatibility; my suggestion is not to change default behavior but to add an optional argument that allows 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
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,
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 Feb 19
2
Grandstream Early Dial
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Bryant,
Thanks for your reply.
It didn'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)
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?
Sometimes I write code like this:
> qf.a <- subset(qf, pubid %in% c(104, 106, 107, 108))
> qf.b <- subset(qf, !pubid %in% c(104, 106, 107, 108))
and I get a little worried that maybe I've remembered the precedence rules
wrong, so I change it to
> qf.a <- subset(qf, pubid %in% c(104, 106, 107, 108))
> qf.b <- subset(qf, !(pubid %in% c(104, 106, 107, 108)))
and pretty
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),
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]] <-
2000 Mar 03
2
Re: [Omega-devel] StatDataML
Hi,
I just had a very quick look at the StatDataML proposal --- nice
work! At the risk of showing my ignorance, I want to mention
my first impressions.
My first impression is that defining datasets in terms of
arrays and list is a bit too high a level. What about
simpler vectors, scalars? (I know that R/S don't have scalars,
but other systems/applications do.) Can we think of a core
2001 Sep 26
1
Characters vectors, NA's and "" in merges
I often use merge with dataframes that contain character vectors which have
elements that are sometimes "NA" (meaning the string NA, not the same thing,
obviously, as NA in a numeric or factor vector). For example, the stock ticker
for Nabisco was "NA". Unfortunately (for me), it seems like merge insists on
inserting "NA" for missing values. My question: Is there some
2010 Jun 29
2
POSIXlt matching bug
I came across the below mis-feature/bug using match with POSIXlt objects
(from strptime) in R 2.11.1 (though this appears to be an old issue).
> x <- as.POSIXlt(Sys.Date())
> table <- as.POSIXlt(Sys.Date()+0:5)
> length(x)
[1] 1
> x %in% table # I expect TRUE
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> match(x, table) # I expect 1
[1] NA NA NA NA NA NA NA NA
2015 Nov 13
4
Ice cast multiple dj's
Hello,
Im new to ice cast and was wondering how I would go about setting it up to allow multiple DJ's for different locations.I would like to have an auto dj playing and then Dj's want to broastcast the auto dj stops, and when the dos stop the auto dj kicks back in straight away.
If anyone has any idea on how to do this that would be great!
Thanks Hannah
-------------- next
2004 Aug 06
2
alias mount points
<SNIP>
> One possibility is using a local relay, have your listeners connect to
> a relay (say /live.ogg) which relays one of the DJs streams. Then
> switching DJs involves moving the relay listener part from one DJ
> mountpoint to another.
>
> Whether you use an always connected streaming playlist as a fallback to
> use between DJs connecting is up to you.
>
>
2001 Nov 20
2
is match slow?
I'm doing
m <- match(matriz, origen, 0)
where matriz is a 270x900 matrix and
origen a 11675 elements vector, and is taking
a very long time.
Is match a function
implemented in C? If not, would a C
code be faster?
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2004 Aug 06
3
There are a solution ?
On Fri, 2003-12-05 at 15:37, Rádio IRCBrasil - André Marcelo wrote:
> I did a sujestion give me by karlH and brendan, i an running a icecast
> master in port 8500 how relay, where the listenners connect, with a local
> point ircbrasil.ogg and the relay poing djs.ogg and a secund server, in port
> 8600, where the djs connect to streamin. The first dj enter ho djs.ogg and
> the other
2009 Jan 25
1
[LLVMdev] gfortran benchmarks
Since the fact that gfortran performance has improved
over the major releases, I decided to benchmark the current
releases on a MacPro with the Polyhedron 2005 benchmarks
using -ffast-math -funroll-loops -msse3 -O3. The results
are...
gcc release
gcc 4.2.4 gcc 4.3.3 gcc 4.4-pre gcc 4.3.3/ gcc 4.4-pre/
2006 Mar 15
3
"\r" with RSQLite
What am I doing wrong, or is the \r that I'm getting
in the example below a bug?
> a <- (1:10)
> b <- (LETTERS[1:10])
> df <- as.data.frame(cbind(a, b))
>
> df
a b
1 1 A
2 2 B
3 3 C
4 4 D
5 5 E
6 6 F
7 7 G
8 8 H
9 9 I
10 10 J
> library(RSQLite)
> drv <- dbDriver("SQLite")
> con <- dbConnect(drv, dbname = "Test")
2006 Mar 15
3
"\r" with RSQLite
What am I doing wrong, or is the \r that I'm getting
in the example below a bug?
> a <- (1:10)
> b <- (LETTERS[1:10])
> df <- as.data.frame(cbind(a, b))
>
> df
a b
1 1 A
2 2 B
3 3 C
4 4 D
5 5 E
6 6 F
7 7 G
8 8 H
9 9 I
10 10 J
> library(RSQLite)
> drv <- dbDriver("SQLite")
> con <- dbConnect(drv, dbname = "Test")