View source: R/balance_check.R
NN | R Documentation |
Given a data frame containing X and Y Cartesian coordinates, find the distance to the nearest point for each point in the data frame.
NN(dataframe, x_var, y_var)
dataframe |
A data frame. Must contain numeric variables corresponding to |
x_var |
Character string. The name of the variable in |
y_var |
Character string. The name of the variable in |
A numeric vector of the distances, one for each point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.