Published September 17, 2022 | Version 2.0.10
Software Open

ifct2017/representations: Representations of columns (as factors and units)

Creators

Description

Representations of columns (as factors and units).<br> 📦 Node.js, 📜 Files.

This is part of package ifct2017.<br> Online database: ifct2017.github.io.

<br>

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

<br> <br>

<br>

Data was obtained from the book Indian Food Composition Tables 2017.<br> Food composition values were measured by National Institute of Nutrition, Hyderabad.

Files

ifct2017/representations-2.0.10.zip

Files (30.0 kB)

Name Size Download all
md5:82c11c0a834c2a0f87ade286e6616dea
30.0 kB Preview Download

Additional details