Learn R Programming

scan (version 0.64.0)

select_phases: Select and combine phases for overlap analyses

Description

Useful when working with pipe operators.

Usage

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

Value

An scdf with selected phases

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.

Examples

Run this code
exampleA1B1A2B2_zvt |>
  select_phases(A = c(1, 3), B = c(2, 4)) |>
  overlap()

Run the code above in your browser using DataLab