Add topic column to a data frame.

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.

See also