identify_turns: Identify turn trials

View source: R/math-turns.R

identify_turnsR Documentation

Identify turn trials

Description

Given an list of 1 & 0's', identify indices where a 1 is preceded by a 0. Patches 0s in place of NAs.

Usage

identify_turns(y)

Arguments

y

a list of 1 & 0s

Value

Returns the indices of all turn trials.


josegallegos07/aceR documentation built on June 27, 2022, 10:25 a.m.