condense: Condense Dataframe Columns

Description Usage Arguments Value See Also Examples

View source: R/condense.R

Description

Condense dataframe columns that are a list of vectors to a single vector of strings.

Usage

1
condense(dataframe, sep = ", ")

Arguments

dataframe

A dataframe with a column(s) that are a list of vectors.

sep

A character string to separate the terms.

Value

Returns a dataframe with condensed columns that can be wrote to csv/xlsx.

See Also

mcsv_w

Examples

1
2
3
4
5
6
## Not run: 
library(qdap)
poldat <- with(DATA.SPLIT, polarity(state, person))
write.csv(x = condense(counts(poldat)), file = "foo.csv")

## End(Not run)

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.