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
> 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"
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
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