The R Project SVN R

Rev

Rev 59039 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61168
Line 47... Line 47...
47
x <- rev(rep(6:10, 1:5))
47
x <- rev(rep(6:10, 1:5))
48
rle(x)
48
rle(x)
49
## lengths [1:5]  5 4 3 2 1
49
## lengths [1:5]  5 4 3 2 1
50
## values  [1:5] 10 9 8 7 6
50
## values  [1:5] 10 9 8 7 6
51
 
51
 
52
z <- c(TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,TRUE,TRUE,TRUE)
52
z <- c(TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, TRUE, TRUE)
53
rle(z)
53
rle(z)
54
rle(as.character(z))
54
rle(as.character(z))
55
print(rle(z), prefix = "..| ")
55
print(rle(z), prefix = "..| ")
56
 
56
 
57
N <- integer(0)
57
N <- integer(0)