Check whether a measure has a defined distance conversion
Source:R/pd_transform_convert.R
pd_convertible_to_distance.RdA scalar predicate over the same conversion table used by
precise_transform(to = "distance"), which converts all rows or none.
Details
The result describes the conversion rule, not a particular matrix. The
generic similarity rule additionally requires values in [0, 1], which
precise_transform() can only check at run time.
The arguments correspond to the metric and type columns of a
precise_dist() result plus the registry family behind that metric. Any
argument may be NA_character_, and type = NA_character_ always returns
FALSE.
See also
precise_transform(), which applies the conversion.