| fit_minmax | R Documentation |
Computes per-column minimum and range from df[, cols].
Constant columns (range == 0) are assigned a range of 1 to avoid
division by zero.
fit_minmax(df, cols)
df |
A data frame or tibble. |
cols |
Character vector of column names to include. |
A list with elements:
minNamed numeric vector of per-column minima.
rngNamed numeric vector of per-column ranges.
colsThe character vector cols (stored for later use).
df <- data.frame(sand = c(20, 40, 60), clay = c(30, 20, 10))
sc <- fit_minmax(df, c("sand", "clay"))
sc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.