From p.dalgaard@biostat.ku.dk  Fri Dec  3 17:02:07 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 03 Dec 1999 18:02:07 +0100
Subject: [[ substitution (PR#358)
In-Reply-To: clive@bell-labs.com's message of "Fri, 3 Dec 1999 16:45:10 +0100 (MET)"
References: <199912031545.QAA08656@pubhealth.ku.dk>
Message-ID: <x2vh6gnek0.fsf@blueberry.kubism.ku.dk>

clive@bell-labs.com writes:

> Probably known, but...
> 
> > z <- vector("list",4)
> > z[[1]] <- function(x)x
> Error in "[[<-"(*tmp*, 1, value = function(x) x) : incompatible types
> 
> (works fine in S4...)

Nope. Didn't know about that one. Works in S3 as well (and should
work in R, obviously). Thanks for pointing it out.

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[[ substitution (PR#358)
Peter Dalgaard BSA