ages: Builds a vector with truncated ages

View source: R/demographic.R

agesR Documentation

Builds a vector with truncated ages

Description

Returns a vector with ages with a normal distribution truncated by upper and upper limits.

Usage

ages(n = 100, lower = 18, upper = 75, mean = 55, sd = 15)

Arguments

n

An integer to define the length of the returned vector.

lower

An integer for ages' lower limit.

upper

An integer for ages' upper limit.

mean

A value for mean's distribution.

sd

A value for standar deviation's distribution.

Value

A vector length n with normal distributed truncated ages.

Examples

ages(n = 100, lower=18, upper=75, mean = 55, sd = 15)

balima78/simK documentation built on May 23, 2023, 5:02 p.m.