export_browser_doc_topics: Export document-topic file for dfr-browser

export_browser_doc_topicsR Documentation

Export document-topic file for dfr-browser

Description

Exports the dt.json[.zip] representation of the document-topic matrix as used by dfr-browser. Use this function to customize the output (e.g. by changing the weighting).

Usage

export_browser_doc_topics(
  file,
  dtm,
  digits = 4,
  zipped,
  overwrite,
  index,
  permute
)

Arguments

file

output file name

dtm

document-topic matrix (will be coerced to sparse if necessary)

digits

numerical rounding (passed on to toJSON)

zipped

compress output?

overwrite

clobber existing file?

index

if non-NULL, output is assumed to go into an element with ID m__DATA__dt 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.