[R] rearrange problem

kevinchang shukai at seas.upenn.edu
Thu Sep 13 12:34:29 CEST 2007


Hi All,

I am trying to rearrange alphabetically each element in a character vector.
ex: say the first element in the vector is "cba", and my goal is to turn it
into "abc". The suggested function to use is sort(). But it turns out that
sort doesn't work at the level of element. So I am wondering that if there
is an alternative function for this purpose. Please help me out . Thanks. 
-- 
View this message in context: http://www.nabble.com/rearrange-problem-tf4434906.html#a12652394
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list