geo.asTracks() function
geo.asTracks()
is experimental and subject to change at any time.
geo.asTracks()
groups rows into tracks (sequential, related data points).
Function type signature
(<-tables: stream[A], ?groupBy: [string], ?orderBy: [string]) => stream[A] where A: Record
Parameters
groupBy
Columns to group by. These columns should uniquely identify each track.
Default is ["id","tid"]
.
orderBy
Columns to order results by. Default is ["_time"]
.
Sort precedence is determined by list order (left to right).
tables
Input data. Default is piped-forward data (<-
).
Examples
Group geotemporal data into tracks
import "experimental/geo"
data
|> geo.asTracks()
Group geotemporal data into tracks and sort by specified columns
import "experimental/geo"
data
|> geo.asTracks(orderBy: ["lat", "lon"])
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.