Displaying 3 results from an estimated 3 matches for "g1c2".
Did you mean:
  g12
  
2014 Apr 02
0
special handling of row.names
...01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "row.names" (has value)
    @104f0e898 13 INTSXP g0c1 [] (len=2, tl=0) -2147483648,-10
    TAG: @100823548 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "class" (has value)
    @104f0e8c8 16 STRSXP g0c1 [NAM(1)] (len=1, tl=0)
      @1008a7e60 09 CHARSXP g1c2 [MARK,gp=0x61,ATT] [ASCII] [cached] "data.frame"
But then, -10 becomes 10: 
> d2 <- structure( d, class = "data.frame" )
> .Internal(inspect(d2))
@104f08898 19 VECSXP g0c1 [OBJ,NAM(2),ATT] (len=1, tl=0)
  @103a7dc60 13 INTSXP g0c4 [NAM(2)] (len=10, tl=0) 1,2,3,4,5,......
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
...g1c1 [MARK,gp=0x21] "example"
>>        ATTRIB:
>>          @df70fd0 02 LISTSXP g0c0 []
>>            TAG: @624f70 01 SYMSXP g1c0 [MARK,NAM(2)] "package"
>>            @c0f6d88 16 STRSXP g0c1 [NAM(2)] (len=1, tl=0)
>>              @67f5e0 09 CHARSXP g1c2 [MARK,gp=0x21,ATT] ".GlobalEnv"
>>
>>     that the 'eg' object is an S4SXP with an attribute that is a LISTSXP.
>>     The LISTSXP has elements that are tagged with SYMSXP representing the
>>     slot name, and values that are REALSXP (for 'size') o...