termco_c: Combine Columns from a termco Object

Description Usage Arguments Value See Also

View source: R/termco_c.R

Description

Combines the columns of a termco object. Generally intended for internal use but documented for completeness.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
termco_c(
  termco.object,
  combined.columns,
  new.name,
  short.term = TRUE,
  zero.replace = NULL,
  elim.old = TRUE,
  percent = NULL,
  digits = 2
)

Arguments

termco.object

An object generated by either termco, termco_d or termco_c.

combined.columns

The names/indexes of the columns to be combined.

new.name

A character vector of length one to name the new combined column.

short.term

logical. If TRUE column names are trimmed versions of the match list, otherwise the terms are wrapped with 'term(phrase)'

zero.replace

Value to replace zeros with.

elim.old

logical. If TRUE eliminates the columns that are combined together by the named match.list.

percent

logical. If TRUE output given as percent. If FALSE the output is proportion.

digits

Integer; number of decimal places to round when printing.

Value

Returns a return a list, of class "termco", of data frames and information regarding word counts:

raw

raw word counts by grouping variable

prop

proportional word counts by grouping variable; proportional to each individual's word use

rnp

a character combination data frame of raw and proportional

zero_replace

value to replace zeros with; mostly internal use

percent

The value of percent used for plotting purposes.

digits

integer value od number of digits to display; mostly internal use

See Also

termco


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