condense function

Condense Dataframe Columns

Condense Dataframe Columns

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

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.

Returns

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

Examples

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

See Also

mcsv_w

  • Maintainer: Tyler Rinker
  • License: GPL-2
  • Last published: 2023-05-11