Skip to main content
. 2017 Sep 11;10:31. doi: 10.1186/s13040-017-0151-7

Table 3.

Example of an R function for converting lipid measurements between mmol/L and mg/dL units

graphic file with name 13040_2017_151_Figa_HTML.jpg

Function arguments (value and units) are validated prior to performing the calculation and an error is raised if incorrect or missing parameters are supplied