Learn R Programming

Plasmidprofiler (version 0.1.6)

minmax: 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

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

Run the code above in your browser using DataLab