| inverse | R Documentation |
inverse is a S3 generic method for inverting an R operator in the
mathematical sense. Presently, inverses are defined for relational
operators, i.e. changing > to <= etc.
inverse(x, ...)
x |
object representing an R operator |
... |
additional arguments |
Arguments will be checked against the defined list of inverses, If an entry exists, the corresponding inverse is returned.
inverse returns the inverse in the same form as the x
argument. Thus, if a name is provided, a name is returned. If a function is
provided, a function is returned.
Christopher Brown
http://en.wikipedia.org/wiki/Inverse_mathematics.
operators especially operators(type="relational"))
## Not run:
inverse( as.name( '!=' ) )
inverse( `==` )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.