Skip to contents

Check Distance Argument

Usage

utils_check_distance_args(distance = NULL)

Arguments

distance

(optional, character vector) name or abbreviation of the distance method. Valid values are in the columns "names" and "abbreviation" of the dataset distances. Default: "euclidean".

Value

character vector

Examples


utils_check_distance_args(
  distance = c(
    "euclidean",
    "euc"
   )
  )
#> [1] "euclidean"