Description Usage Arguments Author(s) Examples
Function will find a sequence of integers and create a factor for each repeat.
1 |
x |
Vector. |
Roman Lustrik (roman.lustrik@biolitika.si)
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.