distribution_repeater: Helper function: distributon repeater

Description Usage Arguments Value Examples

View source: R/random_distribution.R

Description

Helper function: distributon repeater

Usage

1
2
3
4
5
6
distribution_repeater(
  number_of_repeatings = 10,
  number_of_events = 365,
  func,
  ...
)

Arguments

number_of_repeatings

how often should the random distribution with the same parameters be generated (default: 1)

number_of_events

number of events

func

distribution function to be repeated (e.g. runif, rlnorm, rnorm)

...

further parameters passed to func

Value

data.frame with columns repeatID, eventID and values

Examples

1
2
3
4
5
6
7
distribution_repeater(
  number_of_repeatings = 2,
  number_of_events = 10,
  func = runif,
  min = 1,
  max = 10
)

KWB-R/kwb.qmra documentation built on June 15, 2021, 11:14 p.m.