minmax | R Documentation |
Takes two columns of numerical data, normalizes it to ranges from 0 to 1 (0 to -1 for minimums), sums them, arranges by sum, then returns the sorted dataframe
minmax(df, maxcol, mincol)
df |
Dataframe |
maxcol |
Column to normalize from 0 to 1 |
mincol |
Column to normalize from 0 to -1 |
Dataframe sorted by sum of maxcol and mincol
## Not run: minmax(report, "Length", "Coverage") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.