mapping_mrl: Mapping MRL data frame by line

Description Usage Arguments Value

View source: R/RcppExports.R

Description

this Rcpp function 'mapping_mrl()' construct a map object <String, NumericVector> using prduct name as key and numbers of drugs' MRL values vector of this product as value. In this case, users can easily and efficiently query MRL numeric vector with product's name.

Usage

1
mapping_mrl(mrl, products)

Arguments

mrl

MRL numeric matrix of each product (row) in each drug (column)

products

character vector composed of product names, which correspond to each row in param 'mrl'

Value

std::map<String, NumericVector> in Rcpp and List in R.


YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.