cm_time2long: Transform Codes to Start-End Times

Description Usage Arguments Value References See Also Examples

Description

Transforms the range coding structure(s) from cm_time.temp (in list format) into a data frame of start and end times in long format.

Usage

1
2
  cm_time2long(..., v.name = "variable", list.var = TRUE,
    start.end = FALSE, debug = TRUE)

Arguments

...

List object(s) in the form generated by cm_time.temp.

v.name

An optional name for the column created for the list.var argument

list.var

logical. If TRUE creates a column for the data frame created by each time.list passed to cm_t2l.

start.end

logical. If TRUE outputs stop and end times for each cm_time.temp list object.

debug

logical. If TRUE debugging mode is on. cm_time2long will return possible errors in time span inputs.

Value

Generates a dataframe of start and end times for each code.

References

Miles, M. B. & Huberman, A. M. (1994). An expanded sourcebook: Qualitative data analysis. 2nd ed. Thousand Oaks, CA: SAGE Publications.

See Also

cm_df2long, cm_time.temp

Examples

1
2
3
4
5
6
7
8
9
x <- list(
    transcript_time_span = qcv(00:00 - 1:12:00),
    A = qcv(terms = "2.40:3.00, 5.01, 6.02:7.00, 9.00"),
    B = qcv(terms = "2.40, 3.01:3.02, 5.01, 6.02:7.00,
        9.00, 1.12.00:1.19.01"),
    C = qcv(terms = "2.40:3.00, 5.01, 6.02:7.00, 9.00, 17.01")
)
(dat <- cm_time2long(x))
gantt_wrap(dat, "code", border.color = "black", border.size = 5)

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