Function for computing mean responses across CSs

combine_cs(cs1, cs2, data, na.rm = FALSE)

Arguments

cs1

The column name(s) of the conditioned responses for the first conditioned stimulus

cs2

The column name(s) of the conditioned responses for the second conditioned stimulus

data

A data frame containing all the relevant columns for the analyses

na.rm

Whether NAs should be removed, default to FALSE

Value

A tibble with the initial data frame (given by the data argument) together with an additional column with the means for the columns defined in the cs1 and cs2 arguments.