View source: R/balance_check.R
dist_matrix | R Documentation |
Given a data frame containing X and Y Cartesian coordinates, calculate a distance matrix between the points.
dist_matrix(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 matrix of the distances between the points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.