search for: c0f6d58

Displaying 2 results from an estimated 2 matches for "c0f6d58".

Did you mean: c0cf6d57
2010 Nov 12
1
SEXPs and slots
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?
2010 Nov 15
1
SEXP and slots
...TAG: @15b0228 01 SYMSXP g1c0 [MARK,NAM(2)] "id" >> @c0f6178 16 STRSXP g0c1 [NAM(2)] (len=1, tl=0) >> @12341c80 09 CHARSXP g0c2 [gp=0x20] "id_value" >> TAG: @607ce8 01 SYMSXP g1c0 [MARK,NAM(2),gp=0x4000] "class" >> @c0f6d58 16 STRSXP g0c1 [NAM(2),ATT] (len=1, tl=0) >> @96ed08 09 CHARSXP g1c1 [MARK,gp=0x21] "example" >> ATTRIB: >> @df70fd0 02 LISTSXP g0c0 [] >> TAG: @624f70 01 SYMSXP g1c0 [MARK,NAM(2)] "package" >> @c0f6d88...