View source: R/augment-hai-scale-zscore.R
hai_scale_zscore_augment | R Documentation |
Takes a numeric vector and will return a vector that has been scaled by mean and standard deviation
hai_scale_zscore_augment(.data, .value, .names = "auto")
.data |
The data being passed that will be augmented by the function. |
.value |
This is passed |
.names |
This is set to 'auto' by default but can be a user supplied character string. |
Takes a numeric vector and will return a vector that has been scaled by mean and standard deviation.
The input vector must be numeric. The computation is fairly straightforward.
This may be helpful when trying to compare the distributions of data where a
distribution like beta from the fitdistrplus
package which requires data to be
between 0 and 1
y[h] = (x - mean(x) / sd(x))
This function is intended to be used on its own in order to add columns to a tibble.
An augmented tibble
Steven P. Sanderson II, MPH
Other Augment Function:
hai_fourier_augment()
,
hai_fourier_discrete_augment()
,
hai_hyperbolic_augment()
,
hai_polynomial_augment()
,
hai_scale_zero_one_augment()
,
hai_winsorized_move_augment()
,
hai_winsorized_truncate_augment()
Other Scale:
hai_scale_zero_one_augment()
,
hai_scale_zero_one_vec()
,
hai_scale_zscore_vec()
,
step_hai_scale_zscore()
df <- data.frame(x = mtcars$mpg)
hai_scale_zscore_augment(df, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.