Learn R Programming

anabel (version 3.0.2)

convert_toMolar: Convert a unit to molar

Description

convert the value into molar.

Usage

convert_toMolar(val, unit)

Value

The value of analyte concentration in molar

Arguments

val

numeric value of the analyte concentration

unit

character string indicating the unit from which, the analyte concentration will be converted into molar.

Details

supported units are: millimolar, micromolar, nanomolar and picomolar. The name of the unit could be written, or its abbreviation such as: nanomolar (nm), micromolar (mim), picomolar (pm), or millimolar (mm). The unite in either form is case insensitive.

Examples

Run this code
convert_toMolar(120, "nanomolar")
convert_toMolar(120, "nm")
convert_toMolar(120, "millimolar")
convert_toMolar(120, "mm")
convert_toMolar(120, "micromolar")
convert_toMolar(120, "mim")
convert_toMolar(120, "picomolar")
convert_toMolar(120, "pm")

Run the code above in your browser using DataLab