[R] summary(lm(x~y)) difference between R-2.2.1 and R-2.3.0

Robin Hankin r.hankin at noc.soton.ac.uk
Thu Apr 27 16:50:48 CEST 2006


Hi Roger

good point.  I can reproduce the error much more simply:



 > x <- 1:10
 > y <- 10:1
 > summary(lm(x~y))

Call:
lm(formula = x ~ y)

Residuals:

*** caught bus error ***
address 0x18, cause 'invalid alignment'

Traceback:
1: sort(x, partial = unique(c(lo, hi)))
2: quantile.default(resid)
3: quantile(resid)
4: structure(quantile(resid), names = nam)
5: print.summary.lm(list(call = lm(formula = x ~
[snip]

On 27 Apr 2006, at 15:44, roger bos wrote:

> I don't know if this is causing the error, by in your traceback I  
> saw sort()
> was used and sort now removes all the attributes when it sorts.  I  
> used to
> use sort() to sort dates in character format and now it turns them  
> into
> integers and is breaking all my code.  The problem with upgrading  
> is your
> never know what the end result will be on your code.  Check and see  
> if your
> data needs the attributes to remain in order to function properly.
>
>
>
> On 4/27/06, Robin Hankin <r.hankin at noc.soton.ac.uk> wrote:
>>
>> Hi
>>

--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743




More information about the R-help mailing list