Compare-methods: 'Compare' methods for 'vf' objects

Compare-methodsR Documentation

Compare methods for vf objects

Description

Wouldn't it be nice to say (f > g)(x) rather than the terrible, tedious and error-prone f(x) > g(x)? Well, now you can!

Methods

signature(e1 = "ANY", e2 = "vf")
signature(e1 = "function", e2 = "vf")
signature(e1 = "vf", e2 = "ANY")
signature(e1 = "vf", e2 = "function")
signature(e1 = "vf", e2 = "vf")

Examples

x <- seq(from=0, to=2*pi, len=100)
(Sin > Cos*Tan)(x)

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