cycle_response_def: Create complementary response definitions

Description Usage Arguments Value Examples

View source: R/aggregate.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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 June 3, 2021, 2:10 p.m.