Displaying 4 results from an estimated 4 matches for "classunion".
Did you mean:
isclassunion
2006 Apr 13
2
[R] S4 method dispatch matrixOrArray (fwd)
...})
>>>>
>>>>setMethod("foo",
>>>> signature(A = "vector"),
>>>> function(A, ...) {
>>>> callGeneric(matrix(A, nrow = 1), ...)
>>>> })
>>>>
>>>>setClassUnion("matrixOrArray", c("matrix", "array"))
>>>>
>>>>setMethod("foo",
>>>> signature(A = "matrixOrArray"),
>>>> function(A, ...) {
>>>> cat("A =", A, "...
2010 Jan 24
1
recursive data-structures in R - An S4 "node" Class
...ong term goal is to understand how to write c
structs that follows S4 classes and not the other-way-around.
The c struct for the node is :
typedef struct node{
int c;
int n;
inode **nodes; //length = n
} inode;
I am trying to define corresponding S4 class. The closest I could come was:
setClassUnion("listOrNULL",members=c("list", "NULL"))
setClass(Class = "Inode", representation(c =
"numeric",n="numeric",nodes="listOrNULL"))
This does not work, as setting an element of the list of nodes in a node
object overwrites the origi...
2006 Apr 24
0
R 2.3.0 is released
...eedom and then
treated that as a known value. It now uses the estimate NaN,
which is consistent with summary.lm().
o Sys.sleep() on Unix-alikes was restricted to about 2147 seconds
and otherwise might never have returned. (PR#8678)
o is(obj, Cl) could wrongly report TRUE when Cl was a classUnion and
multiple inheritance was involved.
o confint[.lm / .default] used label "100 %" for level = 0.999
o Empty entries (i.e., extraneous ",") in NAMESPACE files now give
a better error message early at parsing time instead of a less
comprehensible one later at load t...
2006 Apr 24
0
R 2.3.0 is released
...eedom and then
treated that as a known value. It now uses the estimate NaN,
which is consistent with summary.lm().
o Sys.sleep() on Unix-alikes was restricted to about 2147 seconds
and otherwise might never have returned. (PR#8678)
o is(obj, Cl) could wrongly report TRUE when Cl was a classUnion and
multiple inheritance was involved.
o confint[.lm / .default] used label "100 %" for level = 0.999
o Empty entries (i.e., extraneous ",") in NAMESPACE files now give
a better error message early at parsing time instead of a less
comprehensible one later at load t...