combine_cs: combine_cs

View source: R/combine_cs.R

combine_csR Documentation

combine_cs

Description

Function for computing mean responses across CSs

Usage

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.


AngelosPsy/multifear documentation built on Oct. 1, 2023, 2:07 p.m.