load_threshold: Load Threshold Data in Excel Format

Description Usage Arguments Value

View source: R/load_threshold.R

Description

Load Threshold Data in Excel Format

Usage

1
2
3
4
5
6
load_threshold(
  path,
  dims_en2cn = utils::modifyList(RawColnameTrans, list(product = ProductLabelName, drug
    = DrugNames[1])),
  threshold_key = ThresholdName
)

Arguments

path

character of .xls(x) file which has threshold data.

dims_en2cn

list where the keys are English name of dimensions and the values are column names of raw data (which is usually Chinese). The default value is the list of RawColnameTrans, ProductLabelName and the first item of DrugNames.

threshold_key

character. The keyword of threshold column name. The default value is ThresholdName.

Value

a data frame contains dimensions combination encoded with 0/1 and threshold data for each combination.


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