Re: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Sundar Dorai-Raj
Yao, Minghua wrote: Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Jeff Gentry
> Is there any function that can arrange a character in alphabetic order? Thanks for > answer Check out sort(). > vv <- c(letters[5:10], letters[20:11], letters[21:26], letters[4:1]) > vv [1] "e" "f" "g" "h" "i" "j" "t" "s" "r" "q" "p" "o" "n" "m" "l" "k" "u" "v" "w"[20] "x" "y" "z" "d" "c" "b"

RE: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Liaw, Andy
You mean as in: > x <- c("aaa", "abc", "ab", "d") > sort(x) [1] "aaa" "ab" "abc" "d" ?? Andy > From: Yao, Minghua > > Hi, > > Is there any function that can arrange a character in > alphabetic order? Thanks for answer > > -MY __ [EMAIL PROTE

[R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Yao, Minghua
Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin