vfunc: Manipulate Virtual Functions

If f <- function(x){x^2} and g <- function(x){x+1} it is a constant source of annoyance that "f+g" is not defined. Package 'vfunc' allows you to do this, and we have (f+g)(2) returning 5. The other arithmetic operators are similarly implemented. A wide class of coding bugs is eliminated.

Package details

AuthorRobin K. S. Hankin [aut, cre] (ORCID: <https://orcid.org/0000-0001-5982-0415>)
MaintainerRobin K. S. Hankin <hankin.robin@gmail.com>
LicenseGPL-2
Version1.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("vfunc")

Try the vfunc package in your browser

Any scripts or data that you put into this service are public.

vfunc documentation built on Aug. 8, 2025, 6:20 p.m.