How do I find all local maxima of val in a multivariate unsorted list, like list( x = c(...), y = c(...), z = c(...), val = c(...) ), where x,y,z a
val
list( x = c(...), y = c(...), z = c(...), val = c(...) )