Displaying 3 results from an estimated 3 matches for "biczok".
Did you mean:
bcook
2009 Jan 19
1
pass by reference for S4
...an handle references
(or external pointers)
of S4 Object instead of the real Objects?
Or is there any technical or compatibility issue which make it
impossible?
I look forward to hear from you and also hope that you don't hate me for
my nooby question.
Yours sincerely,
Rudolf Biczok
[[alternative HTML version deleted]]
2009 Jan 23
1
"for" loop wiht S4 Objects
Hi all,
I'm working with the S4-Class system and I have a little problem with
Implementing iteration functionality in my S4 class but it don't work:
> setClass("foo",representation(bar="list"))
> x <- new("foo",bar=list(1,2,3))
>for(e in x) cat(e)
invalid type/length (S4/1) in vector allocation
But when I extend from a
2009 Jan 25
3
Defining an iterator
Inspired by Rudolf Biczok's query of Fri, Jan 23, 2009 at 1:25 AM, I
tried to implement iteration in a generic way using S4. (Though I am
admittedly still struggling with learning S4.)
> setClass("foo",representation(bar="list"))
[1] "foo"
> x<-new("foo",bar=list(1,2,3))...