Skip to content
Prev 320359 / 398506 Next

Feed rle() output to hist()

If you have

  runs <- rle(sign(zdiff))

then look at 

  str(runs)

Then maybe this does what you want

  hist(runs$lengths)



Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204