How to use custom SQL function in dbplyr?
问题 I would like to calculate the Jaro-Winkler string distance in a database. If I bring the data into R (with collect ) I can easily use the stringdist function from the stringdist package. But my data is very large and I'd like to filter on Jaro-Winkler distances before pulling the data into R. There is SQL code for Jaro-Winkler (https://androidaddicted.wordpress.com/2010/06/01/jaro-winkler-sql-code/ and a version for T-SQL) but I guess I'm not sure how best to get that SQL code to work with