format_var_imp: Format variable importance results

format_var_impR Documentation

Format variable importance results

Description

Publication ready formatting of the output of extract_var_imp(). Separate the term from the part of the record it was found in; uses "&" and "|" to identify non-consecutive n-grams and redundant terms; reduce numeric values to significant digits.

Usage

format_var_imp(var_imp, as_data_frame = TRUE)

Arguments

var_imp

A data frame produced by extract_var_imp().

as_data_frame

Whether to format the output as data frame or as text.

Value

A formatted data frame or a string of text, depending on the as_data_frame argument.

Examples

## Not run: 
output <- extract_var_imp("Session1")

format_var_imp(output)

## End(Not run)

bakaburg1/BaySREn documentation built on March 30, 2022, 12:16 a.m.