I think your code will work but only for the two columns I gave. I used those
as an example but my actual data is 200 in length with two columns and I
need code that will give a label to each unique pair but still have the
original length for instance, one that will turn something such as
[,1] [,2]
[1,] 1 2
[2,] 2 3
[3,] 1 2
[4,] 4 6
[5,] 23 1
into one vector of length 5, giving a number for each unique pair
(1,2,1,3,4) so that the same pairs get the same number.
but my actual data is of length 200 with two columns
Thanks.
--
View this message in context:
http://r.789695.n4.nabble.com/Creating-vectors-tp2321440p2322933.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] 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.