exp_dyn: Dynamic expansion on a vector (changing the mean without...

View source: R/exp_dyn.R

exp_dynR Documentation

Dynamic expansion on a vector (changing the mean without necessarily changing the range of values)

Description

Dynamic expansion on a vector (changing the mean without necessarily changing the range of values)

Usage

exp_dyn(liste, moyenne, max, round = 0)

Arguments

liste

A vector

moyenne

The new desired average for the vector

max

The new max value desired for the vector

round

Define the rounding level

Value

Dynamic expansion on a vector (changing the mean without necessarily changing the range of values)

Examples

x <- round(rnorm(50,10,4),0) # evaluation of students
hist(x,main="before")
exp_dyn(x,12,20)
hist(x,main="after")

Antoine-Masse/KefiR documentation built on Feb. 22, 2024, 5:54 a.m.