search for: tp2321440p2322646

Displaying 1 result from an estimated 1 matches for "tp2321440p2322646".

2010 Aug 11
5
Creating vectors
I didn't really know what to post as the topic subject, but I have a vector, for instance (2,2,4,6,2,4,4,6,8,6) and I want to create another vector which is just numbers from 1 to 4 since there are only 4 unique numbers in my vector, so for instance 2 would be 1, 4 would be 2, 6 would be 3, and 8 would be 4, so my new vector would be (1,1,2,3,1,2,2,3,4,3). The vector I have has longer