Displaying 4 results from an estimated 4 matches for "s3groupgeneric".
2010 Jan 19
2
Help deciphering segfault in make check
...ux boxes that don't on Mac or other
machines. Here is an example from (Red Hat?) in doing the basic
tests, in src/tests/Examples/, where base-Ex.R seems to have a
problem, at the end of base-Ex.Rout.fail:
> ### Name: groupGeneric
> ### Title: S3 Group Generic Functions
> ### Aliases: S3groupGeneric .Group Math Math.data.frame Ops Ops.data.frame
> ### Summary Summary.data.frame Complex 'group generic'
> ### Keywords: methods
>
> ### ** Examples
>
> require(utils)
>
> d.fr <- data.frame(x=1:9, y=stats::rnorm(9))
> class(1 + d.fr) == "data.frame"...
2006 Oct 09
0
dispatch on functions (was: Re: ifelse(logical, function1, function2) does not work)
..." <- function(x, y) function(z) x(z) + y(z)
> > sin+cos
> Error in sin + cos : non-numeric argument to binary operator
> > "+.function"(sin, cos)
> function(z) x(z) + y(z)
> <environment: 0x01c4ae7c>
I think that's because
> oldClass(sin)
NULL
?S3groupGeneric says:
Note that a method will used for either one of these groups or one
of its members _only_ if it corresponds to a '"class"' attribute,
as the internal code dispatches on 'oldClass' and not on 'class'.
This is for efficiency: having to dispa...
2011 Feb 19
2
question about generics
Dear R People:
Is there a way to determine which functions are generics, please? I
looked for something like is.Generic, but no luck.
Thanks in advance!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2013 Jul 31
2
S3 internal and group generics
Hi all,
I've noticed a couple of small bugs/documentation errors related to S3
internal and group generics:
* In ?S3groupGeneric, log2 and log10 are not listed as group generics,
even though they are in the equivalent S4 groups, and are the source
code for do_log1arg contains DispatchGroup("Math", ...)
* As well as log2 and log10, tools:::.get_internal_S3_generics() fails
to include cbind and rbind, even though th...