Description Usage Arguments Value Examples
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.
1 | partner_recoder(data,behaviorstream, type, consequence, partner)
|
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) |
Returns a tibble where newcol holds the code corresponding to the consequence as delivered by a particular partner (Specified in args).
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)
{
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.