Paul Roebuck schrieb:
I have trouble finding applicable examples of S4 methods.
Could someone tell me the canonical method for a function
that takes either one or two arguments corresponding to
dimensions? So if vector output desired, only one argument
'n' would be provided. For matrix, two would b
Hello,
Is it intended that is.vector(...) and is(..., "vector")
do not always give identical results?
is.vector() works as documented ('is.vector' returns
'FALSE' if 'x' has any attributes except names.)
Thus,
A <- array(1:2, 1:2)
M <- diag(2)
is.vector(M) # FALSE, as documented
# and
is.vector
Hello,
does adding the line
\alias{coerce,numeric,matrix.diag.csr-method}
to the Rd-file of your "matrix.diag.csr" class solve the mysterium?
Matthias
> Absolutely correct. Adding coerce to the NAMESPACE list of
> exportMethods
> resolves the problem. Leaves only the mildly mysterious
>
> U
maybe, the point is that is.vector "attempts to coerce its argument into a
vector", but here it fails
is.matrix(as.vector(x1mat))
[1] TRUE
Matthias
>
> The following, which was recently discussions on the rcom-l list,
> is a situation where coercing x1mat to a vector using as.vector
> results in
I think, it must be x instead of object?
setMethod("length", signature(x="Collection"), function(x) length([EMAIL PROTECTED]))
> Hi!
> Have you tried ?
>
> setMethod("length",signature(object="Collection"),function(object){
> length([EMAIL PROTECTED])})
> °°°
>
Hi,
I found the following on Windows 2000/NT
R Version 1.9.1 (2004-06-21) (also Version 1.9.0):
The S4 group "Math" doesn't work as documented; i.e., "log", "log10",
"gamma" and "lgamma" are included
in the documentation but don't work. See example code below.
Moreover, what about 'genericForPr
Hi,
I'm working with Version 1.9.0 (2004-04-12) on Windows 98/NT/2000 where
I found the following wrong (?) behavior of setValidity().
I already mentioned this on the R-help list (2004-06-11, was
"setValidity changes Extends?") , but as I got no answer I tried to
figure out what's happening.
W
Peter Dalgaard schrieb:
"Warnes, Gregory R" <[EMAIL PROTECTED]> writes:
as subclasses of either of the two the subclasses
"AbscontDistribution" or
" DiscreteDistribution".
It is not at all clear to me what an 'AbscontDistribution' is. Perhaps you
are referring to a continuous distrib