Rainer,
  The are probably lots of ways, I'd use

levels(interaction(c("a", "b"), c('x', 'y'), sep=''))

  Dave

>Hi
>
>I know there is a function - I have used it before - but I always forget
>what it is called...
>
>I need the combination of two character vectors, i.e:
>
>x <- c("a", "b")
>y <- c("x", "y")
>
>z <- THEFUNCTION(x, y)
>
>z == c("ax", "ay", "bx", "by")
>
>I promise I will write the name of the function on my desk!
>
>Thanks,
>
>Rainer

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to