I have the following result of expand grid: > d <- expand.grid(c("x","y","z"),c("x","y","z"))
What I want is to create a combination of strings but only the half of the all combinations: Var1 Var2 1 x x 2 y x 3 y y 4 z y 5 x z 6 z z What's the way to do it? G.V. [[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.