View source: R/matching_distance_cache.R
| is_distance_object | R Documentation |
Check if Object is a Distance Object
is_distance_object(x)
x |
Object to check |
Logical: TRUE if x is a distance_object
left <- data.frame(id = 1:3, x = c(1, 2, 3))
right <- data.frame(id = 4:6, x = c(1.1, 2.1, 3.1))
dist_obj <- compute_distances(left, right, vars = "x")
is_distance_object(dist_obj) # TRUE
is_distance_object(list()) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.