Displaying 20 results from an estimated 300 matches similar to: "2 bugs in max.col() (PR#9542)"
2006 Dec 16
1
max.col oddity
I've noticed that the max.col function with the default "random"
option often gives unexpected results. For instance, in this test, it
seems clear what the answer should be:
> # second col should always be max
> x1 = cbind(1:10, 2:11, -Inf)
>
> # this works fine
> max.col(x1, "first")
[1] 2 2 2 2 2 2 2 2 2 2
>
> # this gives random answers
>
2006 Dec 14
0
max.col: bug or just oddity?
I've noticed that the max.col function with the default "random"
option often gives unexpected results. For instance, in this test, it
seems clear what the answer should be:
> # second col should always be max
> x1 = cbind(1:10, 2:11, -Inf)
>
> # this works fine
> max.col(x1, "first")
[1] 2 2 2 2 2 2 2 2 2 2
>
> # this gives random answers
>
2015 Jun 01
0
sum(..., na.rm=FALSE): Summing over NA_real_ values much more expensive than non-NAs for na.rm=FALSE? Hmm...
This is a great example how you cannot figure it out after spending
two hours troubleshooting, but a few minutes after you post to
R-devel, it's just jumps to you (is there a word for this other than
"impatient"?);
Let me answer my own question. The discrepancy between my sum2() code
and the internal code for base::sum() is that the latter uses LDOUBLE
= long double (on some system
2015 Jun 01
2
sum(..., na.rm=FALSE): Summing over NA_real_ values much more expensive than non-NAs for na.rm=FALSE? Hmm...
I'm observing that base::sum(x, na.rm=FALSE) for typeof(x) == "double"
is much more time consuming when there are missing values versus when
there are not. I'm observing this on both Window and Linux, but it's
quite surprising to me. Currently, my main suspect is settings in on
how R was built. The second suspect is my brain. I hope that someone
can clarify the below
2019 Jan 21
0
orderVector1 (sort.c): Tiny improvement concerning nalast
Dear Sir,
In the functions orderVector1, orderVector1l (R-3.5.2/src/main/sort.c) there are two loops concerning nalast (lines 1096, 1105). I am not sure about the possibility of redefining them, so this function should be a little faster.
The first one (line 1096) can be included in the previous 'switch' block (line 1079) (see below). And if you rewrite/duplicate this 'switch'
2010 Aug 23
1
Speeding up sum and prod
Looking for more ways to speed up R, I've found that large
improvements are possible in the speed of "sum" and "prod" for long
real vectors.
Here is a little test with R version 2.11.1 on an Intel Linux system
> a <- seq(0,1,length=1000)
> system.time({for (i in 1:1000000) b <- sum(a)})
user system elapsed
4.800 0.010 4.817
> system.time({for (i
2002 Jul 01
1
Substitutions in strings.
Hi all,
Sorry to bother you with the potentially not too bright question, but
since I cannot get it to work, I'll have to ask someone..
I've got this vector:
> token
[1] sal skal skal bak b_r d_ gal kal l_r n_r pak
p_r
[13] sal sl_r sn_r spak sp_r st_r s_ bak d_ gal l_r
pak
[25] p_r sak sl_r sp_r t_ kal n_r s_ st_r sak kal
2004 Apr 23
3
Problem With zaphfc
I've this error
How i can find the problem?
Apr 23 12:24:43 WARNING[131081]: PRI: received TEI check request for TEI = 89
Apr 23 12:24:47 WARNING[131081]: PRI: received TEI check request for TEI = 89
Apr 23 12:24:48 WARNING[131081]: PRI: !! Got a UA, but i'm in state 1
Apr 23 12:24:53 WARNING[131081]: PRI: received TEI check request for TEI = 89
Apr 23 12:25:02 WARNING[131081]: PRI:
2009 Sep 19
1
matrix operations on grobs and grid units
Dear list,
As a minimal test of a more complex grid layout, I'm trying to find a
clean and efficient way to arrange text grobs in a rectangular layout.
The labels may be expressions, or text with a fontsize different of
the default, which means that the cell sizes should probably be
calculated using grobWidth() and grobHeight() as opposed to simpler
stringWidth() and stringHeight().
2009 Jul 14
1
Incorrect comment about ISNA(x) in Arith.h (PR#13826)
R-2.9.0/include/R_ext/Arith.h has:
int R_IsNA(double); /* True for R's NA only */
int R_IsNaN(double); /* True for special NaN, *not* for NA */
int R_finite(double); /* True if none of NA, NaN, +/-Inf */
#define ISNA(x) R_IsNA(x)
/* True for *both* NA and NaN.
The first and last lines are contradictory - if R_IsNA is true only
for NA, not NaN, then ISNA should be the same.
2008 Oct 01
0
Simulating random draws
Hi,
I have a data frame containing a column of human judgments, some of which
are missing:
> pr[3]
label
1 4
2 4
3 4
4 4
5 NA
6 3
7 3
8 3
9 3
10 NA
11 NA
12 NA
13 2
14 2
15 2
16 NA
17 1
18 -1
19 -1
20 -1
Accompanying this is a matrix containing multinomial probabilities for the
missing values, note that they
2007 Apr 26
0
Static in Audio PRI, Got reject for frame 39, retransmitting frame 39 now, updating n_r!
Anyone know what would cause this error?
!! Got reject for frame 39, retransmitting frame 39 now, updating n_r!
!! Got reject for frame 39, retransmitting frame 40 now, updating n_r!
I assume this would cause audio issues as well.
Thanks,
Steve
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 89]
> Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive
Dchan: 0
2003 Aug 22
0
"Frame rejections" on E1 trucks
Hi-
I've posted this on the bugs list, but I'd also like to see if others have
had similar problems when connecting via E1 trunks (E400P).
I'm getting numerous errors like the following during inbound calls to my E1
channels. These occur when the system is under medium load:
WARNING[196621]: File chan_zap.c, Line 5404 (zt_pri_error): PRI: !! Got
reject for frame 78, retransmitting
2018 Feb 02
1
R-gui sessions end when executing C-code
Hi
I'm trying to develop some C code to find the fixpoint of a contraction mapping, the code compiles and gives the right results when executed in R.
However R-gui session is frequently terminated. I'm suspecting some access violation error due to the exception code 0xc0000005
In the error report windows 10 gives me.
It is the first time I'm writing any C-code so I'm guessing I
2004 Jul 20
1
Random Dropped Called
I've got a 4 port T1 card in my Asterisk box with a PRI from Qwest as
my PSTN interface. I'm experiencing random dropped calls on the
various SIP devices I have tested. Network connectivity to the SIP
devices looks ok, and I have tried a variety of the devices including
all of the following.
Grandstream 286
Grandstresm 486
Sipura SPA 1000
Mediatrix 2102
Some example lines from my logs
2011 Jun 13
1
In rpart, how is "improve" calculated? (in the "class" case)
Hi all,
I apologies in advance if I am missing something very simple here, but since
I failed at resolving this myself, I'm sending this question to the list.
I would appreciate any help in understanding how the rpart function is
(exactly) computing the "improve" (which is given in fit$split), and how it
differs when using the split='information' vs split='gini'
2003 Jun 11
6
Testing two E400P with E1 cross-cable
Hi!
I have the chance to play with a couple of E400P cards, each installed
in a IBM e330 XSeries servers (2 x 1GHz P-III CPU 2 Gb RAM, 36Gb SCSI
HDD with RH8.0 2.4.18-smp kernel), and I'm trying to test/benchmark this
e330/E400P combo generating calls thru /var/spool/asterisk/outgoing
One e400P if doing the carrier work making calls and the other just
receives the calls:
Server#1
2005 Aug 05
1
TE405P Dropping Calls
Hi,
Urgently response would be wonderful, system is a Fedora Core 2.
I have a Ericsson BP250 connected to 1 port on the TE405P and another
connected to a local telco ISDN30.
I have been running CVS-HEAD from about a 2 months ago and upgraded it
again just in cause it was a version issue (didn't fix it) but this is
what I am getting.
When a person calls out from an extension on the BP250 to
2010 Mar 29
1
Suggestion: Adding quick rowMin and rowMax functions to base package
Hi,
I wonder whether similarly to the very quick rowSums and colSums
functions in the base package, one could add quick functions that
calculate the min or max over rows / cols in a matrix. While
apply(x,1,min) works, I found out by profiling a program of mine that it
is rather slow for matrices with a very large number of rows. A quick
functionality seems to be already there in the
2011 Nov 30
1
Error adding Bigmemory package
I am trying to add the bigmemory packages but I get the following error
message:
In file included from bigmemory.cpp:14:0:
../inst/include/bigmemory/isna.hpp: In function 'bool neginf(double)':
../inst/include/bigmemory/isna.hpp:22:57: error: 'isinf' was not declared in
this scope
make: *** [bigmemory.o] Error 1
ERROR: compilation failed for package 'bigmemory'
* removing