[R] printing levels as tuples
Alexy Khrabrov
deliverable at gmail.com
Fri Nov 23 01:32:01 CET 2007
I'm running rle() on a long vector, and get a result which looks like
> uc
Run Length Encoding
lengths: int [1:16753] 1 1 1 1 1 1 1 1 1 1 ...
values : int [1:16753] 29462748 22596107 18322820 14323315
12684505 9909036 7296916 6857692 5884755 5883697 ...
I can print uc$names or uc$levels separately. Is there any way to
print them together as tuples, looking like
(29462748, 1) (22596107, 1) ...
(5883697, 1) ...
...
Cheers,
Alexy
More information about the R-help
mailing list