Description Usage Arguments Details Examples
The function allows to rescale the values of a dataset between a minimum and a maximum that are specified by the user. In doing that, it allows to preserve the shape of the distribution of the original data.
1 | resc.val(x, min.v = 0, max.v = 100)
|
x: |
vector containing the values to be rescaled. |
min.v: |
the minimum value of the rescaled dataset (0 by default). |
max.v: |
the maximum value of the rescaled dataset (100 by default). |
The function produces two density charts representing the distribution of the original and of the rescaled dataset. It also returns a dataframe storing the original and rescaled values.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.