leadingS3generic | R Documentation |
Determines whether a function name
looks like an S3 generic function
leadingS3generic(name,
env, ...)
name |
|
env |
environment to search for additional generics |
... |
ignored here |
This function is one of the default parsers, but exposed as
possibly of more general interest. Given a function name
of the form
x.y.z it looks for the generic function x applying to objects of class
y.z and also for generic function x.y applying to objects of class z.
Assumes that the first name
which matches any known
generics is the target generic function, so if both x and x.y
are generic functions, will assume generic x applying to objects
of class y.z
If a matching generic found returns a list with a single component:
.s3method |
a character vector containing generic |
If no matching generic functions are found, returns an empty list.
Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre], Keith Ponting [aut], Thomas Wutzler [aut], Philippe Grosjean [aut], Markus Müller [aut], R Core Team [ctb, cph]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.