Your question makes no sense at all. The grid expansion
has 9 rows. In case you hadn't noticed, 9 is an odd number
(i.e. not divisible by 2). There are no "halves".
Do not expect the list to read your mind. Instead, ask a
meaningful question.
cheers,
Rolf Turner
On 10/06/13 17:25, Gundala Viswanath wrote:
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?
______________________________________________
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.