findIntegerInterval: Find interval of sequential integers

Description Usage Arguments Author(s) Examples

Description

Function will find a sequence of integers and create a factor for each repeat.

Usage

1

Arguments

x

Vector.

Author(s)

Roman Lustrik (roman.lustrik@biolitika.si)

Examples

1
2
3
4
5
x <- data.frame(orig = c(0,0,0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4,
       0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,5,5,5,
       0,0,0,0,1,1,1,1,2,2,2,2,3,4,5,6,6,6,6,6,6,7,7,7,7,7,8,8,8,8))
x$group <- findIntegerInterval(x$orig)
x

romunov/zvau documentation built on May 27, 2019, 1:50 p.m.