make_TDM: make_TDM

View source: R/steps.R

make_TDMR Documentation

make_TDM

Description

Make text document matrix (TDM) from biotext object.

Usage

make_TDM(
  ret,
  tfidf = FALSE,
  normalize = FALSE,
  takeMean = FALSE,
  takeMax = FALSE,
  docsum = FALSE
)

Arguments

ret

biotext class

tfidf

use TF-IDF

normalize

normalize the values to document number

takeMean

take the mean value for words to rank

takeMax

take the max value for words to rank

docsum

count words per doc

Details

Make TDM based on biotext class using tm.

Value

biotext class object

Examples

obtain_refseq("PNKP") |> make_corpus() |> make_TDM()

noriakis/wcGeneSummary documentation built on May 31, 2024, 4:42 p.m.