nearest_pts {ggbrain} | R Documentation |
Finds the nearest non-missing neighbors of a target point in a 2D matrix
Description
Finds the nearest non-missing neighbors of a target point in a 2D matrix
Arguments
x |
x-position of the point whose neighbors should be found within |
y |
y-position of the point whose neighbors should be found within |
in_mat |
a 2D matrix to search for neighbors of |
neighbors |
the number of closest non-NA neighboring values to return within |
radius |
the radius around |
ignore_zeros |
if TRUE, then zero is not a valid imputation value (since these are not data in NIfTIs) |
Value
A vector of neighbors
closest neighboring values around pt
[Package ggbrain version 0.8.1 Index]