Placement of attributes

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
23 Mar 1998 17:05:00 +0100


Douglas Bates <bates@stat.wisc.edu> writes:

> R> Machines
> Grouped Data: score ~ 1 | Worker
> 
> Process R segmentation fault at Mon Mar 23 09:14:43 1998

in 0.61.2, this behaves differently:

> Machines
Grouped Data: score ~ 1 | Worker
Error: attempt to type-coerce non-vector

In both cases, that is.

However, applying print.data.frame directly or indirectly by removing
the print method, on the structures gives a print of the data frame in
the 1st case and a segfault in the 2nd.

A quick tour into the debugger show that it dies trying to do
CHAR(x[i]) with x[0] == 1, -- and  x[1] == 2, etc. Methinks that
row.names<-as.character(1:54) might help! 

However, one should probably also do the explicit coercion of rownames
to character in  printDataFrame...

But where did the type-coerce error come from?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._