Check that the table of observations is conformable to a matrix of integers.

check_document_term_table(document_term_table)

Arguments

document_term_table

Table of observation count data (rows: documents, columns: terms. May be a class matrix or data.frame but must be conformable to a matrix of integers, as verified by check_document_term_table.

Value

an error message is thrown if the input is improper, otherwise NULL.

Examples

 data(rodents)
 check_document_term_table(rodents$document_term_table)