Re: [R] create a factor variable from two numeric variables when order is irrelevant

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 4:53 PM, David Winsemius wrote: On Jun 28, 2011, at 3:59 PM, Daniel Malter wrote: Hi all, I have two numeric variables that form combinations in a matched sample. Let's say I have five levels of x and y. What I am seeking to create is a factor variable that ignores t

Re: [R] create a factor variable from two numeric variables when order is irrelevant

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 3:59 PM, Daniel Malter wrote: Hi all, I have two numeric variables that form combinations in a matched sample. Let's say I have five levels of x and y. What I am seeking to create is a factor variable that ignores the order of x and y, i.e., the factor should indicate

[R] create a factor variable from two numeric variables when order is irrelevant

2011-06-28 Thread Daniel Malter
Hi all, I have two numeric variables that form combinations in a matched sample. Let's say I have five levels of x and y. What I am seeking to create is a factor variable that ignores the order of x and y, i.e., the factor should indicate x=1, y=5, as the same factor as x=5, y=1. Obviously, this b