Skip to contents

Get the labels of a features to use in graphs

Usage

getLabel(feat, labels_df, neg_label)

Arguments

feat

feature or vector of features to get the label of; should be of the form "feature_value"

labels_df

dataframe of unique feature and corresponding labels; first column is the feature, second column is corresponding label

neg_label

prefix to use for negative features

Value

label to use for feat