get_ensemble: Get ensemble features

Description Usage Arguments Value Examples

View source: R/handle-features.R

Description

Calculate the max, minimum, median and spread for a given score

Usage

1
get_ensemble(df, colname, prefix = colname, rev = FALSE)

Arguments

df

dataframe. The features dataset to calculate from and append to

colname

string. The name of the column corresponding to the feature for which ensemble features will be calculated

prefix

string. The prefix used when naming the ensemble feature columns (defaults to the name of the column)

rev

boolean. Flag to indicate that smaller scores are better for this feature

Value

Returns a dataframe that includes the new ensemble features

Examples

1
2
get_ensemble(features, "ProQ2D") %>%
get_ensemble(., "SAINT2", "S2", rev=TRUE)

clarewest/RFQAmodelr documentation built on Jan. 25, 2020, 12:42 a.m.