Package Exports
- @ifct2017/representations
- @ifct2017/representations/corpus
- @ifct2017/representations/corpus.js
- @ifct2017/representations/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ifct2017/representations) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 fileData was obtained from the book Indian Food Composition Tables 2017.
Food composition values were measured by National Institute of Nutrition, Hyderabad.
