# \donttest{
# Example usage:
if (exists("topic_model")) {
topic_df <- get_topic_df(model = topic_model, topic_number = 3, top_n = 5)
print(topic_df)
} else {
message("No topic_model found. Please load a BERTopic model and try again.")
}
# }
Run the code above in your browser using DataLab