sample_trips
samples a random set of trips from data
.
sample_trips(data, nsamples = 100L, min.links = NULL)
A data frame of trips and their road level travel information, formatted as trips
, see trips
or data(trips); View(trips)
.
The number of trips to sample. Default is 100.
The minimum number of links in each of the sampled trips.
Returns a vector of tripID
's of the sampled trips. Those trips are to be removed from the data, it is up to the user to do so.