gantt_rep: Generate Unit Spans for Repeated Measures

Description Usage Arguments Value Note References See Also Examples

Description

Produces start and end times for occurrences for each repeated measure condition.

Usage

1
2
  gantt_rep(rm.var, text.var, grouping.var,
    units = "words", col.sep = "_")

Arguments

rm.var

An optional single vector or list of 1 or 2 of repeated measures to facet by.

text.var

The text variable.

grouping.var

The grouping variables. Also takes a single grouping variable or a list of 1 or more grouping variables.

units

The unit of measurement to analyze. One of the strings "character", "syllable", "word", or "sentence".

col.sep

The character string to use to separate pasted variables in the merged grouping variable header/name.

Value

Returns a data frame of start and end times by repeated measure and grouping variable(s)

Note

For non repeated measures data/plotting use gantt; for a convenient wrapper that takes text and generates plots use gantt_plot; and for a flexible gantt plot that words with code matrix functions (cm) use gantt_wrap.

References

Clark, W. & Gantt, H. (1922) The Gantt chart, a working tool of management. New York, Ronald Press.

See Also

gantt, gantt_wrap, gantt_plot

Examples

1
2
3
4
5
6
dat <- with(rajSPLIT, gantt_rep(act, dialogue, list(fam.aff, sex),
    units = "words", col.sep = "_"))
head(dat, 20)
gantt_wrap(dat, fam.aff_sex, facet.vars = "act",
    title = "Repeated Measures Gantt Plot",
    minor.line.freq = 25, major.line.freq = 100)

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.