View source: R/balance_check.R
NN_mean | R Documentation |
Given a data frame containing X and Y Cartesian coordinates, find the arithmetic and geometric mean distance to the nearest point.
NN_mean(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 named numeric vector of the mean distances: "arith_mean"
containing the arithmetic mean and "geo_mean"
containing the geometric mean.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.