Re: [R] Tell the difference between characters

From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>
Date: Tue, 26 Apr 2011 14:26:55 -0400

Hi Lisa,

Is this what you have in mind?

> temp <- c("aa", "aA", "ab")
> temp == temp[1]
[1] TRUE FALSE FALSE HTH,
Jorge

On Tue, Apr 26, 2011 at 2:09 PM, Lisa <> wrote:

> Dear all,
>
> I just want to determine if the characters in a character string are the
> same or not. For example,
>
> temp <- c("aa", "aA", "ab")
>
> How do I determine the first one have the two same a, and the second and
> third have the different characters? Thanks in advance.
>
> Lisa
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Tell-the-difference-between-characters-tp3476130p3476130.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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.
>

        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 26 Apr 2011 - 18:31:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Apr 2011 - 19:40:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive