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
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
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
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
?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
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