Re: [R] calculating an N50

From: Jeremy Leipzig <>
Date: Tue, 25 Nov 2008 12:44:54 -0500

> Given a set of integers of different values how do I calculate the
> minimum number of the largest of integers that are required, when
> summed, to equal 50% of the total sum of the the set?
Actually I need the value of the smallest member such that the sum of all members equal or greater to that is 50% of the total sum of the set mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Nov 2008 - 17:46:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Nov 2008 - 19:31:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive