[Rd] SEXPs and slots

From: Patrick Leyshock <pleyshock_at_gmail.com>
Date: Fri, 12 Nov 2010 14:31:31 -0800


Hello,

I've created this class:

setClass("example",

   representation (

          size = "numeric",
          id    = "character"

   )
)

Suppose I create a new instance of this class:

> x <- new("example", 4, "id_value")

This creates an S4 object with two slots. Am I correct in thinking that slots are "filled" by SEXPs?

Thanks, Patrick

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 12 Nov 2010 - 22:39:26 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 Sat 13 Nov 2010 - 11:00:21 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.

list of date sections of archive