search for: numorchar

Displaying 1 result from an estimated 1 matches for "numorchar".

2006 Oct 06
1
class unions?
...quot; package separately defines the "index" class union. is it the case that class definitions need to occur in packages? i am also having trouble dispatching on class unions defined in the global environment, which may just be the same problem. see code below: setClassUnion("numORchar", c("numeric", "character")) foo <- function(x) "Default" setMethod("foo", signature(x = "numORchar"), function(x) "numORchar") foo(2) # gives the default method franklin > version _ platform powerp...