Hi R,

 

I have a matrix A,

 

A=

      [,1] [,2]

[1,]  a     u

[2,]  b     v

[3,]  c     x

[4,]  d     x

[5,]  e     x

 

I want to put the 2nd column of this matrix in a vector without
duplicates. i.e., my vector v should be (u, v, x), whose length is 3.

 

Can anybody help me on this?

 

Thanks in advance

Shubha.


	[[alternative HTML version deleted]]

