first_inc_moment: Get the first incomplete moment from frequency data

Description Usage Arguments Value Examples

View source: R/demonanalysis.R

Description

Get the first incomplete moment from frequency data

Usage

1
first_inc_moment(sizes, counts, threshold)

Arguments

sizes

for example, midpoints of a histogram

counts

counts corresponding to the sizes

threshold

lower bound of sizes to include

Value

the first incomplete moment

Examples

1
2
df_test <- data.frame(size = 1:20, count = exp(-(1:20)))
first_inc_moment(df_test$size, df_test$count, 2)

robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.