On Tue, 1 Apr 2008, Dr. Ferdinand Jamitzky wrote:
> Anyway something like "yield" would be very nice to have.
> Would it be hard to implement?
Short answer: yes, it would be hard.
Longer answer: R's interpreter is based on lots of recursive C calls.
There are standard ways of implementing contin
Sklyar, Oleg (MI London) wrote:
> Robin:
>
> two points:
> Second, your setReplaceMethod seems to be wrong in the definition, try the
> following adding signature for value and ... in the function call. You cannot
> simply drop the ... . Probably you will also need to include j="missing" in
>
Robin:
two points:
first for convenience and performance it has sense to derive your class from
numeric rather than introduce a numeric slot, i.e.
setClass("foo",
representation(
"numeric",
NC="numeric"
),
prototype(
NC=NA_real_
)
)
or
setClass("foo",
representation(
Hello
I am writing a replacement method for an S4 class and want to pass
an additional argument to "[<-"() along the lines of "["()'s "drop"
argument.
Specifically, I have an S4 class, call it "foo", with a slot 'x'
that is a
vector and a slot 'NC' that is a scalar.
I want to be able