What about this:

> X <- c("A", "B", "C", "A", "D", "A")
> Y <- c("B", "A", "C", "A", "C", "B")

> XY <- paste(X, Y, sep="")

> sort(table(XY), decreasing=TRUE)
XY
AB AA BA CC DC
 2  1  1  1  1



On 3/26/06, Zhiqiang Ye <yezhiqiang@gmail.com> wrote:
>
> Dear all,
>
>        I have a question about merge two character vectors of the same
> length into one.
>
>
--
Sarah Goslee
http://www.stringpage.com

	[[alternative HTML version deleted]]


