dist_matrix_innersq_direction: Calculates the distance matrix between a set of paths...

Description Usage Arguments Value

View source: R/distance-between.R

Description

Calculates the distance matrix between a set of paths (Euclidean based). This is actually d^2

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dist_matrix_innersq_direction(
  x,
  position = NULL,
  verbose = FALSE,
  tdm_out = FALSE
)

## S3 method for class 'list'
dist_matrix_innersq_direction(
  x,
  position = NULL,
  verbose = FALSE,
  tdm_out = FALSE
)

## S3 method for class 'data.frame'
dist_matrix_innersq_direction(
  x,
  position = NULL,
  verbose = FALSE,
  tdm_out = FALSE
)

## S3 method for class 'grouped_df'
dist_matrix_innersq_direction(
  x,
  position = NULL,
  verbose = FALSE,
  tdm_out = FALSE
)

Arguments

x

list of paths (data frames) - need to have the same num rows or a nested_df

position

column index of (x,y,...) euclidean coords.

verbose

boolean logic if should have print outs while computing distance matrix

tdm_out

boolean logic if we should return a tidy_dist_mat object or just a matrix.

Value

distance matrix of dimension n x n or data.frame - DESCRIBE


skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.