select_phases: Select and combine phases for overlap analyses

View source: R/select_phases.R

select_phasesR Documentation

Select and combine phases for overlap analyses

Description

Useful when working with %>% operators.

Usage

select_phases(data, A, B, phase_names = "auto")

Arguments

data

A single-case data frame. See scdf() to learn about this format.

A

Selection of the A phase

B

Selection of the B phase

phase_names

A character vector with names for the resulting phases. The default "auto" generates phase names from the combination of the names of the recombined phases.

Value

An scdf with selected phases

Examples

exampleA1B1A2B2_zvt %>%
  select_phases(A = c(1, 3), B = c(2, 4)) %>%
  overlap()

scan documentation built on July 1, 2024, 9:07 a.m.