spec_dataset: Specify Data Set to be Used

Description Usage Arguments Details Value

View source: R/other_utils.R

Description

Specify Data Set to be Used

Usage

1
2
3
4
5
6
7
8
spec_dataset(
  data_list,
  dims,
  ana_threshold,
  calc_type = c("product", "product_drug", "multi_residue"),
  ...,
  digits = 2
)

Arguments

data_list

list of multi-dimensions combinations statistics.

dims

character vector. All dimension variable names.

ana_threshold

data frame of analysis threshold. This function will find the corresponding threshold value in it.

calc_type

character. The type of statistics to be selected which should be in c("product", "product_drug", "multi_residue").

...

dimension variable names to bed selected.

digits

numeric, default 2. Do not keep dicimal places if set NA.

Details

spec_dataset() is closely related with the key names in the return list of gen_dims_comb_stats(). This function use the same method of variable name construction with gen_dims_comb_stats() and this method is hard-encoding hence can not be changed.

Value

data frame with dimension labels and statistics.


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