distribution_vector: vector of values that follow specified distribution

View source: R/special_vectors.R

distribution_vectorR Documentation

vector of values that follow specified distribution

Description

vector of values that follow specified distribution

Usage

distribution_vector(size, distribution_type, distribution_arguments = list())

Arguments

size

integer, size of the output vector

distribution_type

character, type of distribution. You can use direct function name, e.g. "rnorm" or a regular name (e.g. "normal", "gaussian"). All standard distributions from stats package are covered. For a list check Distributions

distribution_arguments

list of arguments required by the distribution function

Examples

distribution_vector(10, "normal", list(mean = 2, sd = 0.5))

fixtuRes documentation built on March 18, 2022, 6:13 p.m.