types.isNumeric() tests if a value is a numeric type (int, uint, or float).
This is a helper function to test or filter for values that can be used in arithmatic operations or aggregations.
Function type signature
(v: A) => bool where A: Basic
(Required) Value to test.
Filter by numeric values
import "types" data |> filter(fn: (r) => types.isNumeric(v: r._value))
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.