Displaying 20 results from an estimated 9000 matches similar to: "Surprising behavior of Negate()"
2010 Feb 19
1
Fix for incorrect use of restrict in xz third party code
Hello,
the included XZ Utils source code contains an incorrect use of the
restrict keyword. This leads to data corruption under certain
circumstances. For a short discussion of the problem see
http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/3306733
This was fixed in the XZ Utils git repository in commit
commit 49cfc8d392cf535f8dd10233225b1fc726fec9ef
Author: Lasse
2004 Jan 06
1
Grouping data.frames
Hello all,
I'm new to R (and the S language in general) so go easy on me if this is really simple.
Given a data.frame df which looks like this:
f1 f2 f3 f4 c1 c2
1 y y a b 10 20
2 n y b a 20 20
3 n n b b 8 10
4 y n a a 30 5
I'd like to aggregate it by the factors f1 and f2 (or f2 and f3, or any other combination of the three) and compute the sum of c1 and c2 (as separate values). I
2005 Jul 08
3
pairs() uses col argument for axes coloring
Hi list,
not sure if this is the wanted behavior, but running the following code:
> version
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 1.1
year 2005
month 06
day 20
language R
> n <- 500
> d <- 4
> m <- matrix(runif(n*d, -1, 1), ncol=d)
> c <- hsv(apply(m, 1, function(x) {sum(x*x)/d}),
2005 Jul 08
3
pairs() uses col argument for axes coloring
Hi list,
not sure if this is the wanted behavior, but running the following code:
> version
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 1.1
year 2005
month 06
day 20
language R
> n <- 500
> d <- 4
> m <- matrix(runif(n*d, -1, 1), ncol=d)
> c <- hsv(apply(m, 1, function(x) {sum(x*x)/d}),
2011 Jan 24
1
Possible bug in R parser
Dear R developers,
A recent typo led me to discover, that R is happy to accept
> 20x2
[1] 20
as input. This appears to be related to the parsing of hexadecimal
constants, since there must be a zero before the 'x' (i.e. 2x2 or
02x02 gives the expected error). All this is under R 2.12.1 on both OS
X and Linux. Is this expected behavior?
Cheers,
Olaf Mersmann
2004 Aug 19
2
How to randomize a set of integers in R
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Received-SPF: none (hypatia: domain of sokamp at web.de does not designate permitted sender hosts)
X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hypatia.math.ethz.ch
X-Spam-Level: ***
X-Spam-Status: No, hits=3.2 required=5.0
2012 May 20
1
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* bisectr (0.0.2)
Maintainer: Winston Chang
Author(s): Winston Chang <winston at stdout.org>
License: GPL-2
http://crantastic.org/packages/bisectr
Tools to find bad commits with git bisect
* CUMP (1.0)
Maintainer: Xuan Liu
Author(s): Xuan Liu <liuxuan at bu.edu> and Qiong Yang <qyang at bu.edu>
2008 Dec 27
1
Patch to fix small bug in do_External and do_dotcall
I've stumbled upon a small bug/inconsitency in do_External and do_dotcall:
Here's an example:
% LC_ALL=C R --vanilla < symname-bug.R
R version 2.8.0 (2008-10-20)
*snip*
> options(error=expression(0))
> ## Call 'R_GD_nullDevice' with incorrect parameter count:
> .Call("R_GD_nullDevice", 1)
Error in .Call("R_GD_nullDevice", 1) :
2010 May 31
1
R 2.11.1 is released
I've rolled up R-2.11.1.tar.gz a short while ago. This is an update release, which fixes a number of mostly minor issues. The most annoying one was probably the problem with format.POSIXlt causing C stack overflow on long date vectors. See the full list of changes below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.11.1.tar.gz
or wait for it to be mirrored at a CRAN site
2010 May 31
1
R 2.11.1 is released
I've rolled up R-2.11.1.tar.gz a short while ago. This is an update release, which fixes a number of mostly minor issues. The most annoying one was probably the problem with format.POSIXlt causing C stack overflow on long date vectors. See the full list of changes below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.11.1.tar.gz
or wait for it to be mirrored at a CRAN site
2009 Feb 10
2
Logical Error? (PR#13516)
Full_Name: Suzi Alves Camey
Version: 2.7.2
OS:
Submission from: (NULL) (143.54.37.254)
Using the commands bellow I expected that the answer is TRUE, but it is FALSE!
P_exposicao=.9
(1-P_exposicao)==.1
2009 Jul 16
1
model.matrix memory problem (PR#13838)
Hi,
`model.matrix' might kill R with a segfault (on a illposed problem, but anyway):
mydf <- as.data.frame(sapply(1:40, function(i) gl(2, 100)))
f <- as.formula(paste("~ - 1 + ", paste(names(mydf), collapse = ":"), sep = ""))
X <- model.matrix(f, data = mydf)
*** caught segfault ***
address 0x18, cause 'memory not mapped'
Segmentation fault
2008 Dec 18
0
DTrace probes for R
I've integrated some DTrace [1] probes into R. Namely a probe which
fires on fuction entry and return and one which fires before / after a
garbage collection.
Is there any interest in merging something like this into R-devel? If
yes, I'd like to discuss which probes and what data would be useful /
interesting from a developers standpoint.
Greetings from Dortmund,
Olaf Mersmann
[1]
2009 Jul 09
2
Improvement of [dpq]wilcox functions
Hi,
I believe I have significantly improved [dpq]wilcox
functions by implementing Harding's algorithm:
Harding, E.F. (1984): An Efficient, Minimal-storage Procedure
for Calculating the Mann-Whitney U, Generalized U and Similar
Distributions, App. Statist., 33, 1-6
Results on my computer show (against R-2.9.1):
> system.time( dwilcox( 800, 800, 80) )
user system elapsed
0.240
2009 Aug 24
0
R 2.9.2 is released
I've rolled up R-2.9.2.tar.gz a short while ago.
This is a maintenance release and fixes a number of mostly minor issues.
See the full list of changes below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.9.2.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in due course (Duncan Murdoch is out
of town, so Windows
2009 Aug 24
0
R 2.9.2 is released
I've rolled up R-2.9.2.tar.gz a short while ago.
This is a maintenance release and fixes a number of mostly minor issues.
See the full list of changes below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.9.2.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in due course (Duncan Murdoch is out
of town, so Windows
2020 Jul 09
0
Is this surprising behavior of tkimage.create function a bug?
tkimage.create function can read some images but can't read the other
images.
We can reproduce it by running the code below.
-------------------------------------------------------------------------------------
library(tcltk)
library(magick)
# works fine
tmp <- tempfile(fileext = ".gif")
image_write(logo, tmp)
image_tcl <- tkimage.create("photo",
2023 Jan 18
1
Surprising behavior with getent on AD service
Hello,
On the local network, we have installed two separate GNU/Linux servers.
One runs a 4.14.14-Debian version Samba-AD DC service while the other
runs a 4.14.14-Debian version Samba service for file sharing.
The second is a member of the AD domain.
On the second one, when I want to show all the accounts defined in AD
using the "getent passwd" command, the system returns the
2010 Nov 12
2
Surprising behavior using seq()
Hello R-help,
I noticed the following surprising behavior when using %in% to find elements in a vector generated using seq().
# weird!!!
> c(7.7, 7.8, 7.9) %in% seq(4, 8, by=0.1)
[1] TRUE FALSE TRUE
# OK now
> c(7.7, 7.8, 7.9) %in% round(seq(4, 8, by=0.1), 1)
[1] TRUE TRUE TRUE
# wait, how is this different?
> c(7.7, 7.8, 7.9) %in% seq(7, 8, by=0.1)
[1] TRUE TRUE TRUE
Is there an
2023 Jan 18
1
Surprising behavior with getent on AD service
Hi Rowland,
I'm really happy to talk to you again (the last time was a long time ago).
For production issues, I can't change these settings at the moment, but
I will soon.
On the file server, the command "getent passwd user2" gives me the
correct information about user2.
But on the AD server, the command "getent passwd user2" still gives me
information about