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

2005-03-17 Thread Uwe Ligges
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 Uwe Ligges thank you __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

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

2005-03-17 Thread Doran, Harold
You can use unique() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terry Mu Sent: Thursday, March 17, 2005 12:24 PM To: R-Help Subject: [R] beginner question: how to sort out distinct values from a vector there is a vector, like: 1, 1, 1, 2, 2, 3, 3

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

2005-03-17 Thread Terry Mu
thank you so much! all of you! On Thu, 17 Mar 2005 11:30:10 -0600, Marc Schwartz <[EMAIL PROTECTED]> wrote: > 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 ?u

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

2005-03-17 Thread Marc Schwartz
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 __ R-help@stat.math.ethz.ch mailing list https://s

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

2005-03-17 Thread Chuck Cleland
?unique 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 thank you __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

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

2005-03-17 Thread Terry Mu
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 thank you __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R