Learn R Programming

qdap (version 2.4.6)

condense: Condense Dataframe Columns

Description

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

Usage

condense(dataframe, sep = ", ")

Value

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

Arguments

dataframe

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

sep

A character string to separate the terms.

See Also

mcsv_w

Examples

Run this code
if (FALSE) {
library(qdap)
poldat <- with(DATA.SPLIT, polarity(state, person))
write.csv(x = condense(counts(poldat)), file = "foo.csv")
}

Run the code above in your browser using DataLab