Description Usage Arguments Examples
Reads rows and normalized the values based on the maximum of the row (range 0-1).
1 2 3 | norm_to_max(x, columns = "..all..", label = "nmax_",
complete_match = FALSE, sub_min = TRUE, na.rm = TRUE,
drop_input = FALSE)
|
x |
A dataframe with the values to be normalized. |
columns |
Vector containing column names to be standardized. By default all columns will be selected
|
label |
Label tag to be added in each collumn. Default value is "nmax_". |
complete_match |
Logical with default value |
sub_min |
Logical with default value |
na.rm |
Action for missing values when calculating min and max values. Defalut is |
drop_input |
Select if you want to append the normalized data into the input dataframe or keep only them.
Logical with default value |
1 2 3 4 5 6 | data <- data.frame(L1 = c("a", "b", "c", "d", "e", "f", "g", "h"),
V1 = c(1, 2, 3, 6, 1, 3, 4, 4),
V2 = c(3, 4, 5, 3, 5, 5, 3, 2),
V3 = c(6, 7, 4, 2, 3, 2, 7, 6))
norm_to_max(data, columns = "V")
norm_to_max(data, columns = "V", sub_min = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.