The function

rb_trip(x)

Arguments

x

A boolean vector

Value

An integer vector of the same length as input, providing unique trip number