concatenator: Concatenate texts by group

Description Usage Arguments Value Examples

View source: R/concatenator.R

Description

Given a data frame with texts and groups, it concatenates texts by group

Usage

1
concatenator(df, text_field = NULL, group_field = NULL)

Arguments

df

a dataframe with at least textual data and a grouping variable

text_field

name of the column (in quotation marks) containing the textual data

group_field

name of the column (in quotation marks) of the grouping variable

Value

a data frame with groups and the corresponding textual data

Examples

1
2
3
## Not run: 
grouped_df <- concatenator(df, text_field = "texts", group_field = "groups")
## End(Not run)

nicolarighetti/textools documentation built on Oct. 16, 2021, 11:20 p.m.