minmax: Minmax

View source: R/main_aux.R

minmaxR Documentation

Minmax

Description

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

Usage

minmax(df, maxcol, mincol)

Arguments

df

Dataframe

maxcol

Column to normalize from 0 to 1

mincol

Column to normalize from 0 to -1

Value

Dataframe sorted by sum of maxcol and mincol

Examples

## Not run: 
 minmax(report, "Length", "Coverage")
 
## End(Not run)

phac-nml/plasmidprofiler documentation built on June 11, 2022, 11:25 a.m.