array.max
Largest element that is not na; with nth = k the (k+1)-th largest. na when there are not enough values.
array.max(id: array<int/float>, nth: int = 0) -> element type
Parameters
idarray<int/float>: An array of numbers; its na elements are skipped. na stops the script with a runtime error.nthint: Which one: 0 (default) the largest, 1 the second largest, ...; below 0 or na stops the script with a runtime error.
Example
secondHighest = a.max(1)