add_col_topic: Add topic column to data frame
Description
Add topic column to a data frame.
Usage
add_col_topic(df, col.topic = "Topic", topic.name = "Topic1")
Arguments
df
Data frame which the topic column is added to.
col.topic
String. Name of the topic column to be created.
topic.name
String. Topic name to be contained in col.topic
.
Value
Data frame with a topic column added.
Details
Add a topic column to a data frame. This topic column is named col.topic
and
contains the string topic.name
.