riemann_sum: riemann.sum

View source: R/riemann_sum.R

riemann_sumR Documentation

riemann.sum

Description

This function calculates the area under the curve for a density function.

Usage

riemann_sum(
  df,
  ...,
  group_by_col = NULL,
  inc.value = NULL,
  min.value = NULL,
  max.value = NULL,
  debug = FALSE
)

Arguments

...

variables to be studied (no quotes)

group_by_col

name of the variable for the grouping (if there is one)

inc.value

split the studied variable in increments of x

min.value

min value of x for witch the riemann.sum will estimate the area under the curve

max.value

max value of x for witch the riemann.sum will estimate the area under the curve

debug

debuggin options on or off

Value

dataframe with values


feranpre/udaicR documentation built on July 15, 2022, 12:54 p.m.