distance_matrix: Create a distance matrix from cell seg data.

Description Usage Arguments Value See Also

View source: R/distance_funcs.R

Description

Create a distance matrix from cell seg data.

Usage

1

Arguments

csd

A data frame with Cell X Position and Cell Y Position columns, such as the result of read_cell_seg_data.

Value

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.

See Also

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()


akoyabio/phenoptr documentation built on Jan. 7, 2022, 5:37 p.m.