integrate: Inline integration

integrateR Documentation

Inline integration

Description

inline call to integrate that returns integration value rather than list

Usage

f %integrate% range

Arguments

f

function (with numeric return)

range

vector of two numbers c(low, high)

Author(s)

Ben Wiseman, benjamin.wiseman@kornferry.com

Examples

f <- function(x) x^2
print(f %integrate% c(0, 1))
# vs base
x <- integrate(f, 0, 1)
str(x)

roperators documentation built on July 26, 2023, 5:27 p.m.