[Rd] slots of type "double"

From: <hpages_at_fhcrc.org>
Date: Tue, 13 Nov 2007 00:36:25 -0800


Hi,

Any idea why S4 doesn't allow slots of type "double"?

> setClass("A", representation(a="double"))
  Error in makePrototypeFromClassDef(properties, ClassDef, immediate, where) :     in making the prototype for class "A" elements of the prototype failed to match the corresponding slot class: a (class “double” )

"numeric", "integer", "character", "complex", "raw", etc... they all work but "double" doesn't. Any reason for this strange exception?

Thanks!
H.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 13 Nov 2007 - 08:41:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 13 Nov 2007 - 15:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.