cycle_response_def: Create complementary response definitions

View source: R/aggregate.R

cycle_response_defR Documentation

Create complementary response definitions

Description

In the typical response definition, there is a primary response compared to other competitors. Oftentimes, we are interested in also comparing each of the competitors to the other images. This function quickly assembles a full cycle of response definitions.

Usage

cycle_response_def(response_def)

Arguments

response_def

a response definition to use a template for other definitions.

Value

a list of response definitions where each member of c(response_def$primary, response_def$others) is used as the primary response.

Examples

# Create one definition
def <- create_response_def(
  primary = 1,
  others = c(5, 8, 9),
  elsewhere = 0,
  missing = NA
)

# Create the full cycle of response definitions
cycle_response_def(def)

tjmahr/littlelisteners documentation built on July 31, 2024, 6:02 a.m.