> -----Original Message-----
> From: [hidden email] > [mailto:[hidden email]]On Behalf Of Arnau Mir
> Sent: Tuesday, March 14, 2006 12:45 PM
> To: [hidden email] > Subject: [R] different values of a vector
> I have a vector of length 2771 but it has only 87 different values.
> How can I obtain them?
It depends on what obtain means. This should get you started.
foo <- sample(1:87,2771,T)