export_browser_topic_scaled: Export scaled topic coordinates for dfr-browser

export_browser_topic_scaledR Documentation

Export scaled topic coordinates for dfr-browser

Description

Exports the topic_scaled.csv file for dfr-browser's "Scaled" view of a topic model. Use this function to export different coordinates than those generated by default in export_browser_data (say, with a different dimension-reduction method, like t-SNE).

Usage

export_browser_topic_scaled(file, scaled, overwrite, index, permute)

Arguments

file

output file name

scaled

two-column coordinate matrix, one row per topic

overwrite

clobber existing file?

index

if non-NULL, output is assumed to go into an element with ID m__DATA__topic_scaled in an HTML file at this path. file is ignored.

permute

if non-NULL, exported topic k will correspond to the topic numbered permute[k] in the data

See Also

export_browser_data for a more automated export of all model information at once


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.