Viji Dade Posted March 18, 2022 Posted March 18, 2022 I have a requirement where I need to compare two string columns in a data table and show or highlight the difference in text in another column. Can we do this a calculated column or through R script
Fabian Duerr Posted March 19, 2022 Posted March 19, 2022 There are various R packages to work with strings. For example stringr or stringi https://stringr.tidyverse.org/ https://cran.r-project.org/web/packages/stringi/stringi.pdf To detect if there are any differences between strings, I can also recommend the stringdist package: https://cran.r-project.org/web/packages/stringdist/stringdist.pdf
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now