minmax: Minmax

Description Usage Arguments Value Examples

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

1
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

1
2
3
4
## Not run: 
 minmax(report, "Length", "Coverage")
 
## End(Not run)

Plasmidprofiler documentation built on May 1, 2019, 9:19 p.m.