ifct2017--representations
/
2.0.10
ifct2017--representations 2.0.10
Install from the command line:
Learn more about npm packages
$ npm install @ifct2017/ifct2017--representations@2.0.10
Install via package.json:
"@ifct2017/ifct2017--representations": "2.0.10"
About this version
Representations of columns (as factors and units).
π¦ Node.js,
π Files.
This is part of package ifct2017.
Online database: ifct2017.github.io.
const representations = require('@ifct2017/representations');
// representations(query)
// β {type, factor, unit} if found, null otherwise
representations('his');
representations('Histidine');
// { type: 'mass', factor: 1000, unit: 'mg' }
representations('representation of vitamin d?');
representations('what is unit of ergocalciferol?');
// { type: 'mass', factor: 1000000000, unit: 'ng' }
// Note:
// type: Type of physical quantity
// factor: Multiplication factor
// unit: Unit symbol
// Additional methods:
representations.load() // β corpus
representations.sql([table], [options]) // β sql statements
representations.csv() // β path of csv file
Data was obtained from the book Indian Food Composition Tables 2017.
Food composition values were measured by National Institute of Nutrition, Hyderabad.