npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

@ifct2017/frequencydistribution

1.0.2 • Public • Published

Frequency distribution of States/UTs for fixing the number of districts to be sampled in Indian Food Composition Tables 2017.

const frequencyDistribution = require('@ifct2017/frequencydistribution');
// frequencyDistribution.corpus: Map {districts (start) => {districts, states, selected, sampled}}
// frequencyDistribution.load(): true (corpus loaded)
// frequencyDistribution.sql([table], [options]): sql commands
// frequencyDistribution.csv(): path to csv file
// frequencyDistribution(<districts>)
// -> {districts, states, selected, sampled}
 
 
frequencyDistribution.load();
/* load corpus first */
 
frequencyDistribution(2);
frequencyDistribution(5);
// { districts: '1-5', states: 9, selected: 1, sampled: 9 }
 
frequencyDistribution(32);
frequencyDistribution(37);
// { districts: '31-40', states: 4, selected: 5, sampled: 20 }

ifct2017

You can ask about composition of 528 key foods in India here: ifct2017.github.io.
Food composition values were measured by National Institute of Nutrition, Hyderabad.

install

npm i @ifct2017/frequencydistribution

Downloadsweekly downloads

5

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability