[[diverted from R-bugs to R-help by the list maintainer]]
Dear Friend and distinguished R gurus,
first of all really thank you very much for the marvellous tool that is R.
I am using R 2.5.0, windows XP - italian language.
I was perfoming some calculation on fractional
I don't get your point, because
exp(-(-3)^2.2)
[1] NaN
is correct. A negative value to the power of a non-integer is undefined
in IR. Of course it is defined as a complex number:
exp(-(-3+0i)^2.2)
[1] 1.096538e-04-3.47404e-05i
Uwe Ligges
Giuseppe PEDRAZZI wrote:
On Thu, 5 Jul 2007, Giuseppe PEDRAZZI wrote:
I am using R 2.5.0, windows XP - italian language.
I was perfoming some calculation on fractional exponential and
I found a strange behaviour. I do not know if it is really a bug, but I would
expect
a different answer from R.
I was trying the
Dear R-list,
I'm not sure what I've found about a function in DAAG package is a bug.
When I was using cv.lm(DAAG) , I found there might be something wrong with
it. The problem is that we can't use it to deal with a linear model with
more than one predictor variable. But the usage documentation
The version 2.5.0 has left Alpha status long time ago and its final
version has been released so please try the new version.
Inman, Brant A. M.D. wrote:
This email is intended to highlight 2 problems that I encountered
running R 2.5.0 alpha on a Windows XP machine.
#1 - Open script error
This email is intended to highlight 2 problems that I encountered
running R 2.5.0 alpha on a Windows XP machine.
#1 - Open script error
If I click the Open folder icon on the toolbar, R opens my script
files perfectly. However, when I select File Open Script
MyFileLocation, I get a fatal
I have found a strange ifelse behaviour (I think)
This works:
ifelse(T,1+1,1+2)
[1] 2
ifelse(F,1+1,1+2)
[1] 3
Maybe I missed something about R internals, but why
ifelse(T,print(hello),print(goodbye))
[1] hello
[1] hello
ifelse(F,print(hello),print(goodbye))
[1] goodbye
[1] goodbye
values
one is returned value, the other one is the result from print
t0 - ifelse(T, print(h), print(e))
[1] h
t0
[1] h
HTH,
weiwei
On 4/17/07, Luca Braglia [EMAIL PROTECTED] wrote:
I have found a strange ifelse behaviour (I think)
This works:
ifelse(T,1+1,1+2)
[1] 2
ifelse(F,1+1,1+2)
[1]
On 4/17/07, Luca Braglia [EMAIL PROTECTED] wrote:
I have found a strange ifelse behaviour (I think)
Don't you think it is rather consistent behavior?
ifelse(T,1+1,1+2)
[1] 2
ifelse(F,1+1,1+2)
[1] 3
ifelse(T,hello,goodbye)
[1] hello
ifelse(F,hello,goodbye)
[1] goodbye
On 17/04/07 - 14:59, Roland Rau wrote:
On 4/17/07, Luca Braglia [EMAIL PROTECTED] wrote:
ifelse(T,1+1,1+2)
[1] 2
ifelse(F,1+1,1+2)
[1] 3
ifelse(T,hello,goodbye)
[1] hello
ifelse(F,hello,goodbye)
[1] goodbye
ifelse(T,print(hello),print(goodbye))
[1] hello
[1] hello
Consider the following lines of code:
plot(function(x) sin(cos(x)*exp(-x/2)), from=-8,to=7,xlim=c(-5,5))
Uses integral points (integers from -5 to 5) to draw the plot, instead
of the usual default of n= 101 equally spaced points (from
?plot.function).
plot(function(x)
Hi Patrick,
Not sure what the problem is from your email. Can you send a code
example which reproduces the error? Make sure you mention the version of
R you are using!
Also send your question/reply to/cc R-help as well. Then the rest of the
world is there to help you too.
Greetings,
Sander.
Please post general R help questions to the R-help mailing list.
The likely problem here is that your file isn't in the current working
directory. To avoid this problem, I often use the file.choose()
function to obtain a full path to the file, rather than typing the name
out myself.
Duncan
Library gmodels include a function CrossTable that is useful for
crosstabulation. In the help, it is indicated that one can call this
function as CrossTable(data), were data is a matrix. However, when I try
to use this option, it doesn't help. Any idea? Is there a bug?
Thanks for your help.
On Tue, 2006-05-02 at 17:21 +0200, Albert Sorribas wrote:
Library gmodels include a function CrossTable that is useful for
crosstabulation. In the help, it is indicated that one can call this
function as CrossTable(data), were data is a matrix. However, when I try
to use this option, it
Hi
I used R for the first time yesterday. I wanted to plot the aliasing
effect of sampling a 5.5KHz sinusoid at only 8KHz (below the Nyquist
limit). So I wrote a small R script that a) plots 1msec worth of a
5.5KHz sin wave b) plots 1msec of the resulting 2.5KHz alias and c)
plots the 8 sampling
Your error:
If you use plot(), the coordinate system of user coordinates is set up
each time, but you do want to plot in the coordinate system of your
first plot, hence use:
plot(time, signal, type = l, col = blue, xaxs = r, yaxs = r,
xlab = Time (msec), ylab = Signal, main = Aliasing,
That also works and is even more concise.Many thanks,
Paul
Uwe Ligges wrote:
Your error:
If you use plot(), the coordinate system of user coordinates is set up
each time, but you do want to plot in the coordinate system of your
first plot, hence use:
plot(time, signal, type = l, col =
the Not Responding caption
will remain in the task bar icon but not in the caption on the main Gui
form. Please see the attached screen caption for an example.
Regards
Francisco
From: Liaw, Andy [EMAIL PROTECTED]
To: 'Francisco J. Zagmutt'
[EMAIL PROTECTED],R-help@stat.math.ethz.ch
Subject: RE: [R
Francisco
From: Liaw, Andy [EMAIL PROTECTED]
To: 'Francisco J. Zagmutt'
[EMAIL PROTECTED],R-help@stat.math.ethz.ch
Subject: RE: [R] Potential minor GUI bug
Date: Thu, 16 Jun 2005 17:26:03 -0400
I don't think that's a bug. Almost every Windows
application can do that:
when it's
: [R] Potential minor GUI bug
Date: Thu, 16 Jun 2005 17:26:03 -0400
I don't think that's a bug. Almost every Windows
application can do that:
when it's busy with computation, you'll see the not
responding message.
Andy
From: Francisco J. Zagmutt
Is this an interface bug? Using RGUI
PROTECTED],R-help@stat.math.ethz.ch
Subject: Re: [R] Potential minor GUI bug
Date: Fri, 17 Jun 2005 08:21:05 +0200
Liaw, Andy wrote:
Now I understand. I get the same thing in SDI mode (R-2.1.0 on WinXPPro).
No idea why...
I guess this is a Windows bug, because I have seen it in other
From: Liaw, Andy [EMAIL PROTECTED]
To: 'Francisco J. Zagmutt'
[EMAIL PROTECTED],R-help@stat.math.ethz.ch
Subject: RE: [R] Potential minor GUI bug
Date: Thu, 16 Jun 2005 17:26:03 -0400
I don't think that's a bug. Almost every Windows
application can do that:
when it's busy
Is this an interface bug? Using RGUI for windows I run into a Not
Responding process (I smartly coded an infinite loop, yaiks!), I hit esc
and the interpreter was stopped and I recovered the console functionality
but the caption on the R icon in my windows taskbar (the individual icon
shown
I don't think that's a bug. Almost every Windows application can do that:
when it's busy with computation, you'll see the not responding message.
Andy
From: Francisco J. Zagmutt
Is this an interface bug? Using RGUI for windows I run into a Not
Responding process (I smartly coded an
This 'strange behaviour' manifest itself within some quite complex
code. When I created a *very* simple example the behaviour dissapeared.
Here is the simplest version I have found which still causes the strange
behaviour (it could be quite unrelated to the boot library, however).
There's something peculiar that I do not understand here. However, did you
realize that the thing you are assigning into parts of `a' is NULL? Check
you're my.test.boot.ci.1: It's NULL.
Be that as it may, I get:
a - data.frame(matrix(1:4, nrow=2), X3=NA, X4=NA)
a
X1 X2 X3 X4
1 1 3 NA NA
This seems to have more to do with NULLs than NAs. For instance:
a - data.frame(matrix(1:8, nrow=2))
a
X1 X2 X3 X4
1 1 3 5 7
2 2 4 6 8
a[a$X2 == 4,]$X1 - NULL
a
X1 X2 X3 X4
1 1 3 5 7
2 4 6 8 4
James
On 8/06/2005 7:15 a.m., Liaw, Andy wrote:
There's something peculiar
BaRow == Barry Rowlingson [EMAIL PROTECTED]
on Thu, 12 May 2005 11:05:43 +0100 writes:
BaRow Uwe Ligges wrote:
Please read about regular expressions (!!!) and try to
understand that .txt also finds Not_a_txt_file.xls
BaRow The confusion here is between
I think glob2rx is of sufficient interest and sufficiently small
that it would be nice to have in the core of R without having to
install and load sfsmisc.
On 5/12/05, Martin Maechler [EMAIL PROTECTED] wrote:
BaRow == Barry Rowlingson [EMAIL PROTECTED]
on Thu, 12 May 2005 11:05:43 +0100
for windows GUI front-end has detected a problem and has to close. And
thats it, R is over!
I don't know if I am doing anything wrong, or if it has to be with my system (I
have Windows XP Pro), but it looks like a bug in R.
Do you know anything else about this. Thank you very much,
Antonio
R, just a Windows error seying something like R
for windows GUI front-end has detected a problem and has to close. And that´s it, R
is over!
I don't know if I am doing anything wrong, or if it has to be with my system (I
have Windows XP Pro), but it looks like a bug in R.
Do you know anything
I run R 2.0.1 on Debian and connect to Informix database via RODBC. In
the table below the column month is of type char(1). RODBC seems to
be converting this column to boolean if the value is F or T.
This is the data in my table:
id month year
25 F 2005
26 Z
On Wed, 23 Feb 2005, Omar Lakkis wrote:
I run R 2.0.1 on Debian and connect to Informix database via RODBC. In
the table below the column month is of type char(1). RODBC seems to
be converting this column to boolean if the value is F or T.
Sounds reasonable. So would read.table, and that equally
Hi,
I run into the following problem:
data(iris)
as.array(iris[,-5])
Error in dimnames-.data.frame(`*tmp*`, value = list(c(Sepal.Length, :
invalid dimnames given for data frame
as.array(as.matrix(iris[,-5]))
When trying to convert numeric data frame to an array. Conversion to matrix
works
As a followup to a previous posting regarding the win.metafile()
function, I've been having some problems as well. In my case, I've been
converting some scripts from S-SPLUS to R that create graphs in order to
take advantage of R's plotmath capabilities.
In the sample code shown below, the axis
It seems that the bug in Lattice cloud() function is on the Win32 R1.8.0Beta only.
So it is solved in the R1.8.0 Final ...
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Mark Marques wrote:
Cloud() function does not display anything with R1.8.0beta
in WindowsXP ...
Does any one noticed this ?
No. Works in the latest beta on my machine.
others functions from lattice seem working properly.
does it work in the final 1.8.0 for windows ?
Yes.
Uwe
Cloud() function does not display anything with R1.8.0beta
in WindowsXP ...
Does any one noticed this ?
others functions from lattice seem working properly.
does it work in the final 1.8.0 for windows ?
__
[EMAIL PROTECTED] mailing list
On Wednesday 16 July 2003 20:50, Mike Meyer wrote:
Several people have kindly (and gently) pointed out that the ?qr
documentation states that rank detection does not work for the LAPACK case.
Its my fault for assuming that rank detection did work. --Mike
sprictly speaking is your fault,
The following snippet suggests that there is either a bug in qr(,LAPACK=T), or some
bug in my understanding. Note that the detected rank is correct (= 2) using the
default LINPACK qr, but incorrect (=3) using LAPACK. This is running on Linux Redhat
9.0, using the lapack library that comes
shows using Hilbert matrix order 9. The rank
can change depending on tolerance option, which is actually not used
if LAPACK = TRUE.
Ravi.
- Original Message -
From: Mike Meyer [EMAIL PROTECTED]
Date: Wednesday, July 16, 2003 12:54 pm
Subject: [R] Is there a bug in qr(..,LAPACK=T
Several people have kindly (and gently) pointed out that the ?qr documentation states
that rank detection does not work for the LAPACK case. Its my fault for assuming that
rank detection did work. --Mike
On Wed, 16 Jul 2003 09:54:39 -0700
Mike Meyer [EMAIL PROTECTED] wrote:
The following
Hello!
let:
test-1:3
list(test)
names(test)-c(X11,X12,Y23)
test[[Y2]]
3
I had assumed that the names in a list are like a keys in a hash.
Therefore i thought that no value should be returned.
The behavior of:
test[Y2]
NA
NA
is as i expected.
Should it be as it is? How is the definition
wolski wrote:
Hello!
let:
test-1:3
list(test)
names(test)-c(X11,X12,Y23)
test[[Y2]]
3
I had assumed that the names in a list are like a keys in a hash.
Therefore i thought that no value should be returned.
The behavior of:
test[Y2]
NA
NA
is as i expected.
Should it be as it is? How is
As wolski/Eryk's example shows, it seems that [[ for lists accepts abbreviations,
whereas [ does not. Is this intended? (This is a difference from S-plus - both [
and [[ for lists accept abbreviations in S-plus (V6.1 for Windows at least.)
I couldn't find any mention of this difference in
Tony Plate wrote:
As wolski/Eryk's example shows, it seems that [[ for lists accepts abbreviations, whereas [ does not. Is this intended? (This is a difference from S-plus - both [ and [[ for lists accept abbreviations in S-plus (V6.1 for Windows at least.)
The general subscripting operator []
This is a difference between S-Plus and R.
S-Plus 6.1 for Windows Professional Ed. Rel. 1:
tst - c(a1 = 1, b2 = 3)
tst[a]
a1
1
R 1.6.2:
tst - c(a1=1, b2=3)
tst[a]
NA
NA
This is important for me, because some of my collaborators use S-Plus
but not R and others use R but not S-Plus. It's
At Monday 07:31 PM 3/24/2003 +0100, Uwe Ligges wrote:
Tony Plate wrote:
As wolski/Eryk's example shows, it seems that [[ for lists accepts abbreviations,
whereas [ does not. Is this intended? (This is a difference from S-plus - both
[ and [[ for lists accept abbreviations in S-plus (V6.1 for
Tony Plate wrote:
At Monday 07:31 PM 3/24/2003 +0100, Uwe Ligges wrote:
Tony Plate wrote:
As wolski/Eryk's example shows, it seems that [[ for lists accepts
abbreviations, whereas [ does not. Is this intended? (This is a difference
from S-plus - both [ and [[ for lists accept
How about this one? If I set a variable in a data.frame with a two-
part name including a dot (say y.pair), and if the variable with the
name of the first part (y) doesn't but I ask for it's value I get the
value of the two-part name. Ie set fred$x.pair and print the value of
fred$x it gives me
51 matches
Mail list logo