export_resdtmf: Export a DFM into resdtmf

Description Usage Arguments Value

View source: R/resdtmf.R

Description

This function exports a dfm into the Responsible Document-term Matrix format.

Usage

1
2
3
4
5
6
7
export_resdtmf(
  input_dfm,
  file_path,
  order = TRUE,
  compress = FALSE,
  return_path = FALSE
)

Arguments

input_dfm

dfm object. Other object types are converted to dfm using quanteda::as.dfm. Examples of these types are Matrix (from the Matrix package) and DocumentTermMatrix (from the tm package).

file_path

characters, file path of the exported file

order

logical, preserve the order of input_dfm in the exported file?

compress

logical, compress the json file into a zip file. File extension ".zip" will be added to file_path, if TRUE.

Value

file path of exported file.


chainsawriot/resdtmf documentation built on April 16, 2020, 11:53 a.m.