Mcalc_grams: Calc grams for Molarity

Description Usage Arguments Value Examples

View source: R/common_molarity_related_functions.R

Description

This function, part of a set of sub functions at the moment, calculates the grams required in a given volume to achieve a certain molarity.

Usage

1
Mcalc_grams(M_target, vol_target, mw, sentence = F, compoundID = NULL)

Arguments

M_target

The molarity, given as M. Dbl.

vol_target

The volume, given in liters. Dbl.

mw

The molecular weight of the compound in question. Does not account for hydrated compounds. Dbl.

sentence

Return the calculation as a description? Logical

compoundID

If sentence == T, provide a label or the compound. String.

Value

Returns a string.

Examples

1
Mcalc_grams(M_target = 1,vol_target = 0.005,mw = 84.01,sentence = T,compoundID = "NaHCO~3~")

avhgenomics/bioKIT documentation built on May 5, 2019, 12:29 a.m.