R: Minmax

minmax {Plasmidprofiler} | R 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)

[Package Plasmidprofiler version 0.1.6 Index]