text_drug_detdef_max: Generate Text Describing Maximum Detection and Defective Rate...

Description Usage Arguments Value Examples

View source: R/text_utils.R

Description

Generate Text Describing Maximum Detection and Defective Rate for Special Item

Usage

1
text_drug_detdef_max(data, colname, specify, change = TRUE)

Arguments

data

a data frame.

colname

character. The name of the item column.

specify

character. The specified value for colname.

change

logical, default TRUE. Whether to change qualification rate to fraction defective.

Value

character of a sentence.

Examples

1
2
df <- data.frame(item = c('a','b','a','a'), detection_rate_percent = runif(4,0,100), qualification_rate_percent = runif(4,0,100))
text_drug_detdef_max(df, "item", 'a')

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