View source: R/mutator-index.R
| index_increment | R Documentation |
Replaces every simple subscript index in x[i] or x[[i]] with
x[i + 1L] / x[[i + 1L]]. Targets identifier and numeric literal indices;
complex expressions (e.g. x[a + b]) are left untouched.
index_increment()
Catches off-by-one errors where tests never verify the exact element retrieved from a vector or list.
A Mutator object.
index_increment()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.