| invert_minmax | R Documentation |
Converts scaled values back to original units.
invert_minmax(X_scaled, scaler)
X_scaled |
Numeric matrix (or vector) of scaled values. |
scaler |
A scaler object returned by |
Numeric matrix in the original (unscaled) units.
df <- data.frame(sand = c(20, 40, 60), clay = c(30, 20, 10))
sc <- fit_minmax(df, c("sand", "clay"))
Xs <- apply_minmax(df, sc)
invert_minmax(Xs, sc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.