Displaying 20 results from an estimated 900 matches similar to: "(PR#8337) formatC adds leading space -- on some Windoze"
2004 Nov 03
2
Suggested color schemes for points, not regions?
I have seen a couple of posts about color schemes like those at the
ColorBrewer site. Most recently:
http://geography.uoregon.edu/datagraphics/color_scales.htm
These color schemes can work very well for regions (bars, polygons,
images, etc.) but are not very suitable for points and/or lines.
Is anyone aware of research/suggestions for a color scheme to use for
scatter plots? I've looked at
2004 Dec 30
1
number format
This mailing list truly is amazing.
Thank you so much for all the help!
I feel a little strange asking something that "simple" again, but I
wasn't able to find it in the help...
Is there a way to tell R how to display numbers (double)? How many
numbers after the decimal point, etc...
Thanks again, folks and have a nice New Years Eve!
Dax
2007 Oct 26
1
Use of all/any
all/any coerce their arguments to logical (if possible). I've added a
warning in R-devel if coercion is from something other than integer.
This arose because it is easy to make a slip and write all(X) > 0 rather
than all(X > 0): thanks to Bill Dunlap for bringing that to my attention.
However, it has been useful in detecting quite a few other things:
- indices which had been made
2005 Apr 17
3
RFC: hexadecimal constants and decimal points
These are some points stimulated by reading about C history (and
related in their implementation).
1) On some platforms
> as.integer("0xA")
[1] 10
but not all (not on Solaris nor Windows). We do not define what is
allowed, and rely on the OS's implementation of strtod (yes, not strtol).
It seems that glibc does allow hex: C99 mandates it but C89 seems not to
allow it.
I
2004 May 12
4
points(*, pch=NA) does *not* not draw the point (PR#6876)
We say in ?points that 'pch' (among others) can be set to NA
for omitting a point.
While this works in cases where there's at least one point left
to draw, it fails in a simple case like this :
> plot(1, pch = NA)
Error in plot.xy(xy.coords(x, y), type = type, pch = pch, col = col, bg = bg, :
invalid plotting symbol
Both in R-patched or R-devel.
A simple workaround {hinting
2007 Dec 29
2
(PR#10534 capture.output(), truncated last output without
This only happens if 'file' is a text connection, and is the expected
behaviour in that case: you cannot capture an incomplete line to a text
connection.
There seems no reason to break the documented behaviour in other cases to
change something that you consider to a bug when file=NULL and the user
does not produce complete output. It would be possible to make use of
isIncomplete()
2001 Dec 27
1
scale in stars() is not as documented (PR#1230)
R 1.4.0
?stars has
scale: logical flag: if `TRUE', the columns of the data matrix are
scaled independently so that the maximum value in each column
is 1 and the minimum is 0. If `FALSE', the presumption is
that the data have been scaled by some other algorithm to the
range [0,1].
but the code has
if (scale) {
x <- sweep(x, 2,
1999 Jul 15
1
which() does not handle NAs in named vectors. (PR#226)
Version:
platform = sparc-sun-solaris2.6
arch = sparc
os = solaris2.6
system = sparc, solaris2.6
status =
status.rev = 0
major = 0
minor = 64.2
year = 1999
month = July
day = 3
language = R
-- It is unclear to me that the handling of NAs is desirable, and it
has problems with names:
> z <- c(T,T,NA,F,T)
> names(z) <- letters[1:5]
> which(z)
Error: names attribute
1999 Feb 28
0
Formatting in formatC and format (PR#129)
[This turned into a bug report which will go to r-devel, so I have taken it
off r-help.]
Bugs reported here:
(1) formatC's help page need some clarification.
(2) formatC needs to treat modes "double" and "real" as equivalent.
(3) format's help page or (preferably) format needs correction re the
meaning of `digits'
On Sun, 28 Feb 1999, Martin Maechler wrote:
2003 May 09
1
Tolerances in glm.control
I have tightened the tolerances in glm.control in R-devel (aka 1.8.0 Under
Development) from epsilon = 1e-4 to 1e-8, and increases maxit from 10 to
25.
Normally the effect is to do one more iteration and get more accurate
results. However, in cases of partial separation several more iterations
will be done and it will be clearer from the results which parameters are
converging and which are
2004 Dec 26
4
R's IO speed
R-devel now has some improved versions of read.table and write.table.
For a million-row data frame containing one number, one factor with few
levels and one logical column, a 56Mb object.
generating it takes 4.5 secs.
calling summary() on it takes 2.2 secs.
writing it takes 8 secs and an additional 10Mb.
saving it in .rda format takes 4 secs.
reading it naively takes 28 secs and an
1999 Sep 13
5
axis() produces junk on DEC alpha (PR#274)
Full_Name: Albrecht Gebhardt
Version: 0.65.0
OS: Digital Unix 4.0E
Submission from: (NULL) (212.17.104.62)
Plottimg on the Alpha stopped working with 0.65.0.
The tickmarks have a length of -Inf and go across the whole
plot.
A first solution is the following patch:
--- src/main/plot.c.alpha-patch Mon Sep 13 01:37:11 1999
+++ src/main/plot.c Mon Sep 13 01:58:16 1999
@@ -832,7 +832,7 @@
1999 Feb 26
1
Re: trailing zeroes
> Date: Fri, 26 Feb 1999 09:59:39 +0000
> From: Bendix Carstensen <bxc at svs.dk>
> When you require 2 digits you expect to find 5.96 printed
Correction, _you_ expect! Very few computer programs do that. You
cannot `require' two digits by options(digits=2): ?options says
digits: controls the number of digits to print when print-
ing numeric values. It is a
2008 May 13
2
(PR#11281) Bug in R 2.7 for over long lines (crasher+proposed fix!)
>>>>> "BDR" == Prof Brian Ripley <ripley at stats.ox.ac.uk>
>>>>> on Tue, 13 May 2008 07:32:43 +0100 (BST) writes:
BDR> This example does not crash in R 2.7.0, R-patched nor
BDR> R-devel (r45677) for me (x86_64 F8 Linux.) It also
BDR> does not crash with the CRAN build of R 2.7.0 on
BDR> Windows XP.
Neither does it
2003 Aug 21
2
automatic logging of commands
Is there an R function that automatically writes all input and output to a
file? I would at least like it to log all the commands I enter, and to
preferably also write the standard output to the file as well as to the
screen. (The ideal would be to write the input to one file and both the
input and output to another file.) I tried R2HTML for this, but I could not
get it to work consistently.
I am
2003 Jan 30
1
empty array indexing with dimnames (PR#2507)
On Thu, 30 Jan 2003 maechler@stat.math.ethz.ch wrote:
> This is a bug that will not often trigger, and only happens for arrays
> (but not matrices) ending up with 0 dimensions:
The bug is a missing else branch of an if condition at line 431 of
subset.c.
I don't think the buglets are wrong. You don't drop length 0 dimensions.
If you did, the object would be of the wrong length.
2001 Aug 22
3
X11 protocol errors after all x11 devices are closed (PR#1065)
> x11()
> dev.off()
null device
1
> x11()
> plot.new()
Warning messages:
1: X11 protocol error: BadAccess (attempt to access private resource denied)
2: X11 protocol error: BadAccess (attempt to access private resource denied)
This only happens if all x11 devices are shut down, so the X11 connection
is restarted. We had problems with this when the event handlers
were
2000 Dec 02
1
multicomp functions that in S but not in R
I am using R for a class which uses S.
Often I can not find functions that in S but
not in R, example, multicomp().
What is your advise.
Thanks.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body",
2005 Jan 04
2
Object Memory-limits in base and its help document (PR#7468)
Full_Name: Shigeru Mase
Version: 2.0.1
OS: Linux (Debian)
Submission from: (NULL) (222.149.162.192)
help.search("Mem") shows there is an object "Memory-limits" in the base package.
But commads "Memory-limits", or "Memory-limits()", causes an error message:
Error: Object "Memory" not found. In addition, help(Memory-limits) displays the
document
2006 Jun 06
3
Suspicious behaviour of sort on POSIXct vectors in R-2.3.0 and R-2.3.1
Hi ,
When I sort a vector of POSIXct values in R-2.3.0 and R-2.3.1, I get a
vector of numeric values and this gets some of my code to crash (class
object creation). Is that a R bug?
In the mean time. I'll try to override the sort function for the POSIXct
objects.
Thanks,
Patrick Gu?vel
Head of quantitative research for electronic trading
This message and any attachments (the