Re: [Rd] Possible bug in R parser

2011-01-24 Thread Prof Brian Ripley
On Mon, 24 Jan 2011, Olaf Mersmann wrote: 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 expecte

Re: [Rd] news.Rd format

2011-01-24 Thread Benilton Carvalho
the version format should be x.y 'Changes in version 2.36' should work... benilton On 22 January 2011 15:58, Terry Therneau wrote: >  I'm converting the "Changelog" files that I have used in the survival package > (since the 1980s) to the inst/NEWS.Rd format and a couple of things are not > cle

Re: [Rd] normality and equal variance testing

2011-01-24 Thread Greg Snow
Why do you want to test for normality and equal variances? If those are really a concern then you should use a method up front that is robust against those. Those tests are usually testing a hypothesis that is different from what you are actually interested in and generally have low power to g

Re: [Rd] normality and equal variance testing

2011-01-24 Thread Ben Bolker
Karthi Subramanian yahoo.ca> writes: > > I currently have a program that automates 2-way ANOVA on a series of > endpoints, but before the ANOVA is carried out I want the code to > test the assumptions of normality and equal variance and report along > with each anova result in the > output fil

Re: [Rd] "+" operator on characters revisited

2011-01-24 Thread Gabor Grothendieck
On Mon, Jan 24, 2011 at 2:15 PM, Davor Cubranic wrote: > On 2011-01-23, at 4:34 AM, Gabor Grothendieck wrote: > >> On Sun, Jan 23, 2011 at 6:56 AM, Vitalie S. wrote: >>> Gabor Grothendieck writes: >>> Also the gsubfn supports quasi perl style string interpolation that can sometimes be

Re: [Rd] "+" operator on characters revisited

2011-01-24 Thread Davor Cubranic
On 2011-01-23, at 4:34 AM, Gabor Grothendieck wrote: > On Sun, Jan 23, 2011 at 6:56 AM, Vitalie S. wrote: >> Gabor Grothendieck writes: >> >>> Also the gsubfn supports quasi perl style string interpolation that >>> can sometimes be used to avoid the use of paste in the first place. >>> Just pre

Re: [Rd] match function causing bad performance when using tablefunction on factors with multibyte characters on Windows

2011-01-24 Thread Matthew Dowle
I'm not sure, but note the difference in locale between Linux (UTF-8) and Windows (non UTF-8). As far as I understand it R much prefers UTF-8, which Windows doesn't natively support. Otherwise you could just change your Windows locale to a UTF-8 locale to make R happier. My stab in the dark would

Re: [Rd] setGeneric for residuals, etc

2011-01-24 Thread Martin Morgan
On 01/24/2011 08:37 AM, Kasper Daniel Hansen wrote: > Johann, > > whether S4 is "better" than S3 is a heated subject. No-one (I think) > disputes that S4 is in some sense more flexible (for some suitable > definition of flexible), but it does incur some performance overhead > (how much is debatab

[Rd] normality and equal variance testing

2011-01-24 Thread Karthi Subramanian
I currently have a program that automates 2-way ANOVA on a series of endpoints, but before the ANOVA is carried out I want the code to test the assumptions of normality and equal variance and report along with each anova result in the output file.  How can I do this? I have pasted below the c

Re: [Rd] setGeneric for residuals, etc

2011-01-24 Thread Kasper Daniel Hansen
Johann, whether S4 is "better" than S3 is a heated subject. No-one (I think) disputes that S4 is in some sense more flexible (for some suitable definition of flexible), but it does incur some performance overhead (how much is debatable) and some would argue that it also makes code more complicate

Re: [Rd] setGeneric for residuals, etc

2011-01-24 Thread Johann Hibschman
"Janko Thyson" writes: >> I'm experimenting with a few model-fitting classes of my own. I'm >> leaning towards using S4 for my classes, but the R functions I'd want >> to override (residuals, predict, etc.) are all S3 methods. > For example, inside your method for 'residuals()', you will > prob

Re: [Rd] "Simulate" package namespace at development stage

2011-01-24 Thread Uwe Ligges
On 23.01.2011 21:21, Janko Thyson wrote: Dear list, I was wondering if it is possible to create and use a package namespace at the development stage of a package. To clarify, I would like to make sure that my package functions (and not some other functions that happen to have identical names)

[Rd] Possible bug in R parser

2011-01-24 Thread Olaf Mersmann
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 bot