[R] what's this character?

Peter Langfelder peter.langfelder at gmail.com
Thu Nov 29 03:07:46 CET 2012


On Wed, Nov 28, 2012 at 4:44 PM, Shi, Tao <shidaxia at yahoo.com> wrote:
> Hi list,
>
> I've encounter this problem (see below).  I know it's particularly R-related and it's easy to get by but it still bothers me a lot.
>
>
> It looks the last character of "N.C. " is a space to me, but it's clearly not.  Can someone tell me a way to figure out what character is in the last position.

Probably a non-breaking or other special space. You can try utf8ToInt
on your character string to convert it to UTF-8 codes. Then look up
the character by its code.

HTH,

Peter




More information about the R-help mailing list