Skip to content
Prev 70129 / 398503 Next

getting the unique values and counts from a vector

Dear Ravi,

try
[1] 5 3 0 0 0 2

Sorry, there is a typo above. However, it works because of it.

Correct is
[1] 5 3 0 0 0 2

another variant
[1] 5 3 2


--
Best regards
Wladimir Eremeev                                     mailto:wl at eimb.ru

==========================================================================
Research Scientist, PhD                           Leninsky Prospect 33,
Space Monitoring & Ecoinformation Systems Sector, Moscow, Russia, 119071,
Institute of Ecology,                             Phone: (095) 135-9972;
Russian Academy of Sciences                       Fax: (095) 135-9972