Re: [Rd] Consistency of serialize(): please enlighten me

2007-09-03 Thread Hin-Tak Leung
I have a couple of ideas - serialize() can store references (and some simple assignment are just stored as references until one tries to modify part of the copy, i.e. in a copy-on-write manner); ocassionally, it will also store the package name as an attribute to the class name in which the class

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Ted Harding
On 03-Sep-07 19:25:58, Gabor Grothendieck wrote: > Not sure if this counts but using the Ryacas package Gabor, I'm afraid it doesn't count! (Though I didn't exclude it explicitly). I'm not interested in the behaviour of the sequence with denominator = 7 particularly. The system is in fact an examp

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Gabor Grothendieck
Not sure if this counts but using the Ryacas package > library(Ryacas) > x <- Sym("x") > Set(x, Sym(3)/7) expression(3/7) > cat(i, "0: "); print(x) 10 0: expression(3/7) > for(i in 1:10) { + yacas("Set(x, If(x <= 1/2, 2*x, 2*(1-x)))") + cat(i, "i: "); print(x) + } 1 i: expression(6/7) 2 i: express

Re: [Rd] locales and readLines

2007-09-03 Thread Martin Morgan
Thank you very much for explaining this. I had indeed overlooked the use of encoding in 'file'. I also appreciate how unsatisfactory guessing at the encoding can be, and that scanning the entire file is not appropriate for large files or general connections. Sorry that 'burden' came across as nega

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Ted Harding
On 03-Sep-07 15:12:06, Henrik Bengtsson wrote: > On 9/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> [...] >> If it may be usefull, I have written to small function >> (Unique and isEqual) >> which can deal with this problem of the double numbers. > > Quiz: What about utility functions equa

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Henrik Bengtsson
On 9/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Full_Name: Marco Vicentini, University of Verona > Version: 2.4.1 & 2.5.1 > OS: OsX & WinXP > Submission from: (NULL) (157.27.253.46) > > > When I proceed to test the following equation 1 + 2 == 3, I obviously obtain > the > value TRUE. But

[Rd] buglet?? in nlme:::corRatio documentation

2007-09-03 Thread Ben Bolker
[hoping to redeem myself for my last spurious bug report] From ?corRatio: Letting d denote the range and n denote the nugget effect, the correlation between two observations a distance r apart is (r/d)^2/(1+(r/d)^2) when no nugget effect is present and (1-n)*(r/d)^2/(1+(r/d)

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Duncan Murdoch
On 03/09/2007 2:59 AM, [EMAIL PROTECTED] wrote: > Full_Name: Marco Vicentini, University of Verona > Version: 2.4.1 & 2.5.1 > OS: OsX & WinXP > Submission from: (NULL) (157.27.253.46) > > > When I proceed to test the following equation 1 + 2 == 3, I obviously obtain > the > value TRUE. But when

Re: [Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread Petr Savicky
On Mon, Sep 03, 2007 at 08:59:22AM +0200, [EMAIL PROTECTED] wrote: > Full_Name: Marco Vicentini, University of Verona > Version: 2.4.1 & 2.5.1 > OS: OsX & WinXP > Submission from: (NULL) (157.27.253.46) > > > When I proceed to test the following equation 1 + 2 == 3, I obviously obtain > the > va

[Rd] When 1+2 != 3 (PR#9895)

2007-09-03 Thread marco . vicentini
Full_Name: Marco Vicentini, University of Verona Version: 2.4.1 & 2.5.1 OS: OsX & WinXP Submission from: (NULL) (157.27.253.46) When I proceed to test the following equation 1 + 2 == 3, I obviously obtain the value TRUE. But when I tryed to do the same using real number (i.e. 0.1 + 0.2 == 0.3) I

[Rd] read.spss converts string variables with value labels to (PR#9896)

2007-09-03 Thread honza
Full_Name: Jan Hucin Version: 2.5.1 (foreign 0.8-20) OS: WinXP Submission from: (NULL) (195.113.83.7) When reading an SPSS file: - containing some variable of type String - with value labels at that variable - and with determination which values of that variable are considered to be missing, I

[Rd] Typo in regex help page

2007-09-03 Thread Gregor Gorjanc
Hi! I believe there is a typo in R/src/library/base/man/regex.Rd The 52nd line looks like: The metacharacters are in EREs are ... ^^^ Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-d

Re: [Rd] locales and readLines

2007-09-03 Thread Prof Brian Ripley
I think you need to delimit a bit more what you want to do. It is difficult in general to tell what encoding a text file is in, and very much harder if this is a data file containing only a small proportion of non-ASCII text, which might not even be words in a human language (but abbreviations