Get Document Information DataFrame
get_document_info_df.RdThis function retrieves document information from a BERTopic model and processes it to unnest list columns, replace NA values, and consolidate columns with the same prefix.
Examples
if (FALSE) { # \dontrun{
document_info_df <- get_document_info_df(model = topic_model,
texts = texts_cleaned, drop_expanded_columns = TRUE)
print(document_info_df)
} # }