[R] Is it a bug ?

2007-07-05 Thread Giuseppe PEDRAZZI
[[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

Re: [R] Is it a bug ?

2007-07-05 Thread Uwe Ligges
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:

Re: [R] Is it a bug ?

2007-07-05 Thread Thomas Lumley
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

[R] Is this a bug in cv.lm(DAAG) ?

2007-05-20 Thread 李俊杰
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

Re: [R] ? R 2.5.0 alpha bug

2007-05-02 Thread Stefan Grosse
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

[R] ? R 2.5.0 alpha bug

2007-05-01 Thread Inman, Brant A. M.D.
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

[R] Is this a bug?

2007-04-17 Thread Luca Braglia
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

Re: [R] Is this a bug?

2007-04-17 Thread Weiwei Shi
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]

Re: [R] Is this a bug?

2007-04-17 Thread Roland Rau
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

Re: [R] Is this a bug?

2007-04-17 Thread Luca Braglia
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

[R] plot.function with xlim, bug?

2007-02-01 Thread Prasenjit Kapat
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)

Re: [R] soil.texture() function with bug?

2006-11-24 Thread Sander Oom
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.

Re: [R] Scan or read.table bug in R?

2006-11-07 Thread Duncan Murdoch
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

[R] Is there a bug in CrossTable (gmodels)

2006-05-02 Thread Albert Sorribas
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.

Re: [R] Is there a bug in CrossTable (gmodels)

2006-05-02 Thread Marc Schwartz (via MN)
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

[R] Newbie error or bug?

2006-03-13 Thread Paul Vickers
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

Re: [R] Newbie error or bug?

2006-03-13 Thread Uwe Ligges
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,

Re: [R] Newbie error or bug?

2006-03-13 Thread Paul Vickers
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 =

Re: [R] Potential minor GUI bug

2005-06-17 Thread Francisco J. Zagmutt
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

Re: [R] Potential minor GUI bug

2005-06-17 Thread Liaw, Andy
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

Re: [R] Potential minor GUI bug

2005-06-17 Thread Uwe Ligges
: [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

Re: [R] Potential minor GUI bug

2005-06-17 Thread Francisco J. Zagmutt
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

Re: [R] Potential minor GUI bug

2005-06-17 Thread Prof Brian Ripley
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

[R] Potential minor GUI bug

2005-06-16 Thread Francisco J. Zagmutt
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

Re: [R] Potential minor GUI bug

2005-06-16 Thread Liaw, Andy
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

[R] Help with possible bug (assigning NA value to data.frame)?

2005-06-07 Thread Dan Bolser
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).

RE: [R] Help with possible bug (assigning NA value to data.frame) ?

2005-06-07 Thread Liaw, Andy
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

Re: [R] Help with possible bug (assigning NA value to data.frame) ?

2005-06-07 Thread James Reilly
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

[R] glob2rx() {was: no bug in R2.1.0's list.files()}

2005-05-12 Thread Martin Maechler
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

Re: [R] glob2rx() {was: no bug in R2.1.0's list.files()}

2005-05-12 Thread Gabor Grothendieck
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

[R] Is this a bug in R?

2005-04-27 Thread Revilla,AJ (pgt)
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

Re: [R] Is this a bug in R?

2005-04-27 Thread Prof Brian Ripley
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

[R] RODBC type conversion bug

2005-02-23 Thread Omar Lakkis
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

Re: RODBC works as documented (was [R] RODBC type conversion bug)

2005-02-23 Thread Prof Brian Ripley
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

[R] Problem with as.array (bug?)

2005-01-03 Thread Tuszynski, Jaroslaw W.
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

[R] win.metafile() problem -- possible bug?

2003-10-20 Thread Schwarz, Paul
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

[R] Lattice cloud() funtion bug Solved in Final version

2003-10-10 Thread Mark Marques
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

Re: [R] Lattice cloud() funtion bug in R1.8.0beta

2003-10-09 Thread Uwe Ligges
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

[R] Lattice cloud() funtion bug in R1.8.0beta

2003-10-08 Thread Mark Marques
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

Re: [R] Is there a bug in qr(..,LAPACK=T)

2003-07-17 Thread Adelchi Azzalini
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,

[R] Is there a bug in qr(..,LAPACK=T)

2003-07-16 Thread Mike Meyer
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

Re: [R] Is there a bug in qr(..,LAPACK=T)

2003-07-16 Thread Ravi Varadhan
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

Re: [R] Is there a bug in qr(..,LAPACK=T)

2003-07-16 Thread Mike Meyer
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

[R] Is it a bug in list() behavior?

2003-03-24 Thread wolski
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

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Uwe Ligges
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

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Tony Plate
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

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Uwe Ligges
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 []

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Spencer Graves
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

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Tony Plate
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

Re: [R] Is it a bug in list() behavior?

2003-03-24 Thread Uwe Ligges
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

[R] Strange and disturbing bug

2003-03-18 Thread Steve Roberts
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