Description Usage Arguments Details Value Author(s) References Examples

The function calculates a local minimum of the vector `x`

surrounded by at least `n.points`

higher numbers.

1 | ```
localmin(x, n.points = 2)
``` |

`x` |
a vector of numbers. |

`n.points` |
a minimum number of higher values to determine the local minimum (see Details). Default is two points. |

The function calculates a local minimum of the vector `x`

, i.e. the lowest value of the vector `x`

surrounded by at least `n`

higher numbers. The concept of the local minimum applied to ERP analysis is taken from Luck (2005).

The local minimum of the vector `x`

is returned.

Giorgio Arcara

Luck, S., J. (2005). An Introduction to the Event-Related Potential Technique. Cambridge, Mass.: The MIT Press.

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.