Skip to contents

Writes CSV tables (<prefix>_best_sets.csv with the ten best sets per size, _sets.csv with every passing set, _summary.txt with the sentences of recommend_sets(), _regions.csv, _regions_best_set.csv, _pareto.csv, _counts.csv, _pairs.csv, _variables.csv, _frequency.csv, _reference_sets.csv, _consistency.csv, _structure_agreement.csv, _union_rho.csv, _tree.nwk) and figures (_tree, with the best sets below the tree, _union_heatmap, _sets with the score card and _sets_scatter), as PNG and/or PDF.

Usage

write_variable_selection(x, dir, prefix = "variables", format = "png")

Arguments

x

A var_selection.

dir

Output folder.

prefix

File name prefix.

format

Figure format(s): "png" (default), "pdf" or both, c("png", "pdf").

Value

The paths of the written files, invisibly.

Examples

# see ?select_variables; e.g. write_variable_selection(vs, tempdir())