binCount2D {oce} | R Documentation |
Count the number of elements of a given matrix z=z(x,y) that fall within successive pairs of breaks in x and y.
binCount2D(x, y, xbreaks, ybreaks, flatten = FALSE)
x |
Vector of numerical values. |
y |
Vector of numerical values. |
xbreaks |
Vector of values of |
ybreaks |
Vector of values of |
flatten |
A logical value indicating whether
the return value also contains equilength
vectors |
A list with the following elements: the breaks (xbreaks
and ybreaks
), the midpoints (xmids
and ymids
)
between those breaks, and
the count (number
) of f
values in the boxes defined
between successive breaks.
Dan Kelley
Other bin-related functions: binApply1D
,
binApply2D
, binAverage
,
binCount1D
, binMean1D
,
binMean2D