Description Usage Arguments Value See Also Examples

This function returns the lengh of the longest run of a particular numeric value in a numeric vector. A "run" is an uninterrupted sequence of the same number. Runs can be "wrapped" so that if the sequence starts and ends with the target value then it is considered as a consecutive run.

1 |

`x` |
Numeric vector. |

`val` |
Numeric. Value of the elements of |

`wrap` |
Logical. If |

`na.rm` |
Logical. If |

Integer.

[base::rle()]

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.