R/make_metric_df.R
make_metric_df.Rd
Use a set of (continuous) columns to choose a good set of rows
Dataframe with columns over which to find good rows
Dataframe mapping the name of possible metrics to cases (columns) in which to use that metric.
Character. Name of columns in df that define context.
Character. Name of mets_df
column to use in this instance.
Character. Name of method to use in summarising if there is more than one row per context.
Logical. If true, all metrics will be rescale 0 ('worst') to 1 ('best').
Numeric specifying the proportion of rows considered 'top'.
Numeric specifying the absolute number of rows considered 'best'.
Either 'across' or 'within'. If the latter, only metrics that are set up to work 'within' clusters (rather than 'across' clusterings) are used.