dist_sum_inv.RdFind sum of inverse distances between each starting point in x and possible end points, y.
dist_sum_inv(
x_df,
y_df,
x_id = "id",
y_id = "id",
x_lon_col = "lon",
x_lat_col = "lat",
y_lon_col = "lon",
y_lat_col = "lat",
dist_function = "Haversine",
dist_transform = "level",
decay = 2,
scale_units = 1
)DataFrame with starting coordinates
DataFrame with ending coordinates
String name of unique identifer column in x_df
String name of unique identifer column in y_df
String name of column in x_df with longitude values
String name of column in x_df with latitude values
String name of column in y_df with longitude values
String name of column in y_df with latitude values
String name of distance function: "Haversine" (default) or "Vincenty"
String value of distance transform: "level" (default) or "log"
Numeric value of distance weight decay: 2 (default)
Double value to divide return value by (e.g., 1000 == km)
DataFrame with sum of distances