condense: Condense Dataframe Columns

View source: R/condense.R

condenseR Documentation

Condense Dataframe Columns

Description

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

Usage

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

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

## End(Not run)

qdap documentation built on May 31, 2023, 5:20 p.m.