[R] beginner question: how to sort out distinct values from a vector

Marc Schwartz MSchwartz at MedAnalytics.com
Thu Mar 17 18:30:10 CET 2005


On Thu, 2005-03-17 at 12:24 -0500, Terry Mu wrote:
>  there is a vector, like:
> 1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 
> 
> I'd like a function that gives me only 1, 2, 3, 4, 5

See ?unique

HTH,

Marc SChwartz




More information about the R-help mailing list