real_imagined: Combine .r and .i Pairs into a .c Variable

Description Usage Arguments Value Examples

View source: R/padis_specific_functions.R

Description

Combine .r and .i Pairs into a .c Variable

Usage

1
real_imagined(data, ignore_double = FALSE, combine_data = TRUE)

Arguments

data

The data frame that contains the .r and .i variable pairs. The function handles characters and numerics, but not factors.

ignore_double

logical. If set to TRUE, cases in which both .i and .r contain values will be ignored and NA will be defined to the .c variable. Default is to FALSE

combine_data

logical. If set to TRUE, the original data frame will be combined with the new data frame. Default is to TRUE

Value

Returns a data frame with a combined variable .c, which contains the values of the .i and .r variables.

Examples

1
2
3
real_imagined(real_imagined_data)
real_imagined(real_imagined_data, ignore_double = TRUE)
real_imagined(real_imagined_data, ignore_double = TRUE, combine_data=FALSE)

kthorstmann/padis documentation built on May 24, 2019, 5:01 a.m.