Reputation: 53
I have a list of RLEs that looks like this:
RleList of length 3
$item1
Lengths: 1 3 1 2 1 5
Values : NA 0 4 13 14 17
$item2
Lengths: 4 1 1 1 1 1 1 1 1 1
Values : 0 18 102 108 131 167 181 48 31 29
$item3
Lengths: 1 3 1 1 1 1 1 1 1 1 1
Values : 0 1 20 56 65 77 106 50 47 44 7
I used it to make a plot that has multiple lines in one plot. I want to find a line of maximum values of the 3 lines and plot that into a new plot. How can I achieve my goal? Do I need to convert the RLE to a vector and then find the max values for each position?
Upvotes: 0
Views: 122