Helper functions for handling tracks

current_track_index()

set_current_track(track_index)

n_tracks()

is_in_track(x, y, track_index = current_track_index())

Arguments

track_index

The index of the track.

x

X-location of data points.

y

Y-location of data points.

Value

current_track_index() returns the index of the current track.

set_current_track() returns no value.

n_tracks() returns the number of available tracks.

is_in_track() returns a logical vector.

Details

is_in_track() tests whether data points are inside a certain track.