precedent: Precedent - takes a vector and returns the value of the...

Description Usage Arguments Value

View source: R/utilities.R

Description

Precedent - takes a vector and returns the value of the vector that precedes each observation. For example, if a vector of trial types is c("congruent", "congruent", "incongruent", "congruent"), the function will provide the vector of trial types that *preceded* those in the vector. Essentially, this just shifts the vector forward by one. When using this, be sure to discard the first values in your blocks.

Usage

1

Arguments

x

a vector of observations

Value

a shifted vector indicating the values that preceded the input values


michaelpmcdonald/noggin documentation built on May 22, 2019, 9:52 p.m.