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 pipe 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()

jazznbass/scan documentation built on Sept. 14, 2024, 8:53 a.m.