Hello,
I've got another challenge for the user group. I have a file of
sequential simultaneous events (1,2,3) with the duration (in seconds) for
these simultaneous occurrences. The files range from 2 hours to 8 hours
and I need to run statistics on segments of 15 min. So I need to cut the
file into segments of 15 minutes based on the duration column. I am
attempting to write a function that uses the value of the cumulative sum
of the duration column, but this seems very inefficient and requires
coding for several conditions for breaking files if a cut off point occurs
between or on a duration value.
For example, a file may appear as:
event1 event2 event3 duration
A X L 333
A Y L 250
A X M 507
B X L 100
...
and we would want it to be segmented into:
A X L 333
A Y L 250
A X M 317
and
A X M 190
B X L 100
...
any help/hints are appreciated..thanks
Robert
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|