Re: [R] Eliminating 'Unprintable ASCII' characters

2009-11-25 Thread Prof Brian Ripley
I think you mean the control characters: there are other unprintable characters (del for example). They are the character range [\001-\037]. E.g. test - intToUtf8(1:40, multiple=TRUE) grepl([\001-\037], test) [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE [13]

[R] Eliminating 'Unprintable ASCII' characters

2009-11-24 Thread Steven Kang
Hi all, I have a csv file containing words with *UNPRINTABLE ASCII* characters (described in the following table). Are there any viable method in eliminating these characters? I realise that *EXTENDED ASCII* characters (i.e , ¡, ¢, £, ¤ etc) can be removed or replaced via *gsub* or *gregexpr*