gridMax: Maximum value of a grid block

Description Usage Arguments Details Value

View source: R/utils.R

Description

Get the maximum (or minimum) value and corresponding coordinates from a grid block, defined from logical masks for the grid dimensions

Usage

1
 gridMax(x, y, z, xmsk, ymsk, sFUN=max) 

Arguments

x

coordinates of first dimension

y

coordinates of second dimension

z

numeric matrix, or vector matching x,y dimensions, advancing first by x indices

xmsk

LOGICAL vector

ymsk

LOGICAL vector

sFUN

either 'max' (default), or 'min'

Details

If more than a maximum/minimum value is found, the first one is returned

Value

A named vector of length 3 with x,y,z values.


garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.