Introducing the vfunc R package

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Hankin, Robin K. S.
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915866755465216
author Hankin, Robin K. S.
author_facet Hankin, Robin K. S.
contents $f,g\colon\mathbb{R}\longrightarrow\mathbb{R}$, it is natural to define $f+g$ as the function that maps $x\in\mathbb{R}$ to $f(x) + g(x)$. However, in base R, objects of class function do not have arithmetic methods defined, so idiom such as "f + g" returns an error, even though it has a perfectly reasonable expectation. The vfunc package offers this functionality. Other similar features are provided, which lead to compact and readable idiom. A wide class of coding bugs is eliminated.
format Preprint
id arxiv_https___arxiv_org_abs_2603_15156
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Introducing the vfunc R package
Hankin, Robin K. S.
Symbolic Computation
68
$f,g\colon\mathbb{R}\longrightarrow\mathbb{R}$, it is natural to define $f+g$ as the function that maps $x\in\mathbb{R}$ to $f(x) + g(x)$. However, in base R, objects of class function do not have arithmetic methods defined, so idiom such as "f + g" returns an error, even though it has a perfectly reasonable expectation. The vfunc package offers this functionality. Other similar features are provided, which lead to compact and readable idiom. A wide class of coding bugs is eliminated.
title Introducing the vfunc R package
topic Symbolic Computation
68
url https://arxiv.org/abs/2603.15156