), 0, off)))
>
> giving:
>
> seq ref on off loading
> 1 10 A 5 0 5
> 2 20 B NA NA 5
> 3 30 C NA NA 5
> 4 40 D 0 2 3
> 5 50 B 10 2 11
> 6 60 A 0 6 5
>
> You will need to test this with more data
I am hoping someone can help me with a bus stop sequencing problem in R,
where I need to match counts of people getting on and off a bus to the
correct stop in the bus route stop sequence. I have tried looking
online/forums for sequence matching but seems to refer to numeric sequences
or DNA matchi
2 matches
Mail list logo