#' Unit Conversion - Mass/Weight - Milligram to Grain
#'
#' Performs a conversion of weights from milligrams to grains.
#'
#' @param x Vector - Values in units of milligrams
#'
#' @return x, but converted to grains
#'
#' @references
#' NIST. Handbook 133 - Checking the Net Contents of Packaged Goods - Appendix E - General Tables of Units of Measurement. 2020.
#' https://www.nist.gov/system/files/documents/2019/12/03/00-20-h133-apdxE_final-17.pdf
unitconversion.milligram.to.grain <- function(
x = 1
) {
x / 64.79891
}
#' @rdname unitconversion.milligram.to.grain
unitconversion.mg.to.gr <- unitconversion.milligram.to.grain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.