[R] Classification
Chris Li
chrisli at austwaterenv.com.au
Sat Nov 21 07:16:06 CET 2009
Thanks to both of you. Problem's solved. Greatly appreciated. :]
Chris
Chris Li wrote:
>
> Hi all,
>
> I have got a dataset like the following:
>
> 3
> 5
> 7
> 3
> 9
> 7
>
>
> i.e. random numbers with some repeats.
>
> I want R to classify them for me. E.g. every row that has a value of 3
> will be asigned a value of 1, and every row that has a value will be
> asigned a value of 2 etc.
>
> I want R to return the following, using the example above:
>
> 1
> 2
> 3
> 1
> 4
> 3
>
> Thanks in advance.
> Chris
>
--
View this message in context: http://old.nabble.com/Classification-tp26429330p26454103.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list