Skip to contents

Computes 0-1 scaled version of dataframe column, within groups, and ranks (1-N) entries within group based on scaled values (where 1 is highest in-group scaled value, and N is the lowest in-group scaled value).

Usage

scale_and_rank(data, col_name)

Arguments

data

dataframe of processed MSE data

col_name

name of data column to scale and rank

Details

Intended for use on performance metric data only. Note that "Catch AAV, "Proportion of Years with Low SSB", and "Recovery Time" performance metrics use inverse ranking system (smaller scaled values are better), as the intention is to minimize these metrics.