tof_make_knn_graph: Title

tof_make_knn_graphR Documentation

Title

Description

Title

Usage

tof_make_knn_graph(
  tof_tibble,
  knn_cols,
  num_neighbors,
  distance_function = c("euclidean", "cosine"),
  graph_type = c("weighted", "unweighted"),
  ...
)

Arguments

tof_tibble

A tibble or tof_tbl.

knn_cols

Unquoted column names indicating which columns in tof_tibble should be used for the KNN calculation.

num_neighbors

An integer number of neighbors to find for each cell ( not including itself).

distance_function

A string indicating which distance function to use for the nearest-neighbor calculation. Options include "euclidean" (the default) and "cosine" distances.

graph_type

A string indicating if the graph's edges should have weights ("weighted"; the default) or not ("unweighted").

...

Optional additional arguments to pass to tof_find_knn

Value

A tbl_graph.

Examples

NULL


keyes-timothy/tidytof documentation built on Aug. 28, 2024, 8:37 a.m.