integrate {roperators} | R 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)
[Package roperators version 1.3.14 Index]