calc_2d_dist | R Documentation |
This function calculates the 2-D distances between pairs of points in a data frame.
calc_2d_dist(
trimesh_data,
select_vars = c("from", "to", "x_from", "y_from", "x_to", "y_to", "from_count",
"to_count", "distance")
)
trimesh_data |
A tibble that contains the x and y coordinates of start and end points. |
select_vars |
selected columns in the resulting data frame. |
A tibble with columns for the starting point, ending point, and calculated distances.
tr_from_to_df <- scurve_model_obj$trimesh_data
calc_2d_dist(trimesh_data = tr_from_to_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.