How about using operator == On Sat, Oct 31, 2009 at 5:00 AM, bamsel <benam...@gmail.com> wrote: > > Dear R users: > I need to compare character strings stored in 2 separate data frames. I need > an exact match, so finding "a" in "animal" is no good. > I've tried regexpr, match, and grepl, but to no avail. > Anybody know how to accomplish this? > Ben > -- > View this message in context: > http://old.nabble.com/exact-string-match--tp26136677p26136677.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > 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. >
______________________________________________ R-help@r-project.org mailing list 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.