Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (11 sloc) 375 Bytes
#' @importFrom stringdist stringdist
#' @importFrom rlang quo_name enquo enquos
#' @importFrom tibble tibble
#'
tibble_dist <- function(df, v1, v2, method, ...){
str_dist <- stringdist(a=df[[quo_name(enquo(v1))]],
b=df[[quo_name(enquo(v2))]],
method=method,
...)
tibble(!! method := str_dist)
}
You can’t perform that action at this time.