Create a distance matrix from cell seg data.
distance_matrix(csd)
A data frame with Cell X Position
and Cell Y Position
columns, such as the result of
read_cell_seg_data
.
A square matrix with both dimensions equal to nrow(d)
.
The value at [i, j]
will be the distance from the cell
at row i
of csd
to the cell at row j
.
The returned matrix is symmetric.
Other distance functions:
compute_all_nearest_distance()
,
count_touching_cells()
,
count_within_batch()
,
count_within_many()
,
count_within()
,
find_nearest_distance()
,
spatial_distribution_report()
,
subset_distance_matrix()