exp_dyn | R Documentation |
Dynamic expansion on a vector (changing the mean without necessarily changing the range of values)
exp_dyn(liste, moyenne, max, round = 0)
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 |
Dynamic expansion on a vector (changing the mean without necessarily changing the range of values)
x <- round(rnorm(50,10,4),0) # evaluation of students
hist(x,main="before")
exp_dyn(x,12,20)
hist(x,main="after")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.