partner_recoder: Partner Recoder

Description Usage Arguments Value Examples

Description

The partner_recoder creates a new variable (newcol) which places a consequence_partner code for observations where a desired consequence comes from a desired partner.

Usage

1
partner_recoder(data,behaviorstream, type, consequence, partner)

Arguments

data

A dataframe or tibble

behaviorstream

A column (character vector) representing the observation stream. Contains actor behaviors and partner consequences

type

A column (character vector) representing the social partners

consequence

A character string indicating the environmental consequence acting as a reinforcer

partner

A character string indicating the code for desired partner (from the type column)

Value

Returns a tibble where newcol holds the code corresponding to the consequence as delivered by a particular partner (Specified in args).

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

delaneyj1786/REINFORCINATOR documentation built on Jan. 14, 2022, 3:47 a.m.