Skip to content
Prev 315325 / 398503 Next

Need some help on Text manipulation.

Hi,

If you only need "aa" to be replaced by "a", "bb" by "b" and so on, try 
the following:

Dat$att <- as.factor(substr(Dat$att,1,1))

HTH,
Pascal


Le 15/01/2013 18:48, Christofer Bogaso a ?crit :