Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] Comparing/diffing strings

Hadley Wickham

2010-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

all.equal is generally very useful when you want to find the
differences between two objects. It breaks down however, when you
have two long strings to compare:

> all.equal(a, b)
[1] "1 string mismatch"

Does any one know of any good text diffing tools implemented in R?

Thanks,

Hadley

--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.