Description Usage Arguments Value
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.
1 | precedent(x)
|
x |
a vector of observations |
a shifted vector indicating the values that preceded the input values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.