Re: R-alpha: ... + one more bug?

Douglas Bates (dbates@stats.adelaide.edu.au)
Thu, 16 May 96 10:18 CST


Message-Id: <m0uJrEv-0001bNC@arcola.stats.adelaide.edu.au>
Date: Thu, 16 May 96 10:18 CST
From: Douglas Bates <dbates@stats.adelaide.edu.au>
To: R-testers@stat.math.ethz.ch, ihaka@stat.auckland.ac.nz
Subject: Re: R-alpha: ... + one more bug?
In-Reply-To: <199605160022.CAA11334@ingrid.ethz.ch>
 <199605160022.CAA11334@ingrid.ethz.ch>

Here is the version information on the Linux machine that Bill V. and I
are using.  

 bash$ gcc -v
 Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs
 gcc version 2.7.2
 bash$ R
 ...
 > version
 $platform
 [1] "LINUX_INTEL"

 $arch
 [1] "Intel iAPX 486"

 $os
 [1] "Unknown Linux"
 ...

I have tracked the problem inside the lm code to the statement
   y <- model.response(ttmf, "numeric")
Error: object cannot be coerced to vector type

Inside there the problem is the assignment of storage.mode to the
response

> storage.mode(tty) <- "double"
Error: object cannot be coerced to vector type

It appears that the "[[" extraction function is returning a data.frame
rather than a vector in the v <- data[[1]] part of model.response.
Here is a transcript where I am imitating the sequence of operations
in model.response()

 > ttdata
		y  x
  [1,] -0.4249125  1
  [2,]  2.5302513  2
  [3,]  2.3317350  3
  [4,]  3.7853505  4
  [5,]  5.4059503  5
  [6,]  5.6682632  6
  [7,]  5.9530260  7
  [8,]  7.5238503  8
  [9,] 10.3377826  9
 [10,] 10.4150079 10
 > ttv <- ttdata[[1]]
 > ttv
		y
  [1,] -0.4249125
  [2,]  2.5302513
  [3,]  2.3317350
  [4,]  3.7853505
  [5,]  5.4059503
  [6,]  5.6682632
  [7,]  5.9530260
  [8,]  7.5238503
  [9,] 10.3377826
 [10,] 10.4150079
 > class(ttv)
 [1] "data.frame"

-- 
Douglas Bates             Dept. of Statistics, U. of Wisconsin-Madison
            (visiting at: Dept. of Statistics, U. of Adelaide)
   bates@stat.wisc.edu    or   dbates@stats.adelaide.edu.au

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-