[S] How to calculate the number of eepeated values in a vector

Josť Ailton Alencar andrade (andrade@inep.gov.br)
Thu, 06 Aug 1998 08:40:31 -0300


Hello,

I have a vector in the which has repeated values(some values are
repeated several times), so I want to calculate the number of repeated
values. The refered vector is:

p_c(0.4, 0.375115972467956, 0.473273164813074, 0.71993459693355,
0.51919531563581,
0.51919531563581, 0.524536126375491, 0.582314755176738,
0.603769507192654, 0.603769507192654,
0.603769507192654, 0.603769507192654, 0.603769507192654,
0.603769507192654, 0.603769507192654,
0.603769507192654, 0.603769507192654, 0.664264781237254,
0.664264781237254, 0.664264781237254,
0.664264781237254, 0.462904169385216, 0.462904169385216,
0.455091840166777, 0.488311137089431,
0.488311137089431, 0.488311137089431, 0.430581802522524,
0.491443659079761, 0.547994264899034,
0.547994264899034, 0.547994264899034, 0.444505493353447,
0.561397173267572, 0.561397173267572,
0.561397173267572, 0.561397173267572, 0.561397173267572,
0.499254082412661, 0.499254082412661,
0.509406103223119, 0.564312030773672, 0.594477862519174,
0.435939722276416, 0.435939722276416,
0.429544762297839, 0.471621717924724, 0.477528558877679,
0.43671185539292, 0.416499948694176,
0.521772198491539, 0.521772198491539, 0.546681072989839,
0.56339587744368, 0.350549601180413,
0.350549601180413, 0.448738275906221, 0.644782450799853,
0.644782450799853, 0.555742505599747,
0.555742505599747, 0.555742505599747, 0.555742505599747,
0.495076777049056, 0.495076777049056,
0.495076777049056, 0.576970180498823, 0.576970180498823,
0.58664621659496, 0.58664621659496,
0.628411665392027, 0.420160335820971, 0.420160335820971,
0.477735389001449, 0.668271606980953,
0.668271606980953, 0.668271606980953, 0.668271606980953,
0.599455909096334, 0.599455909096334,
0.474171935116142, 0.513854090588061, 0.513854090588061,
0.440884067525528, 0.440884067525528,
0.455213561820021, 0.482115507237722, 0.47420108696759,
0.481446192607061, 0.453498528657939,
0.538450784768834, 0.450661072021921, 0.4878711190382, 0.4878711190382,
0.654723103250951,
0.654723103250951, 0.654723103250951, 0.569754229513399,
0.492655877316342, 0.492655877316342,
0.529613065008982, 0.529613065008982, 0.564624472993617,
0.483950589798186, 0.483950589798186,
0.483950589798186, 0.483950589798186, 0.498203458773686,
0.49746751220944, 0.49746751220944,
0.575225062069638, 0.575225062069638, 0.575225062069638,
0.575225062069638, 0.575225062069638,
0.575225062069638, 0.559354407711006, 0.539621188264919,
0.541093581820588, 0.541093581820588,
0.480666474142278, 0.480666474142278, 0.544737173649102,
0.560309403228531, 0.560309403228531,
0.560309403228531, 0.560309403228531, 0.560309403228531,
0.523758737544261, 0.523758737544261,
0.560283209031264, 0.577606707855558, 0.516978419288875,
0.59835854836094, 0.59835854836094,
0.59835854836094, 0.59835854836094, 0.59835854836094, 0.49385288026118,
0.572591523563179,
0.575297716728444, 0.575297716728444, 0.508173099701547,
0.454469918894114, 0.573553320413935,
0.431821003811624, 0.586382713908052, 0.586382713908052,
0.586382713908052, 0.586382713908052,
0.586382713908052, 0.595944719159607, 0.5747350882621, 0.5747350882621,
0.5747350882621,
0.5747350882621, 0.472826957276927, 0.43615572046158, 0.43615572046158,
0.561815029881207,
0.575281273858429, 0.575281273858429, 0.575281273858429,
0.584011165407933, 0.482975932938261,
0.50076135607923, 0.50076135607923)

Thanks!

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news