Description Usage Arguments Value Examples
change_to_defective(df)
will change the qualification_rate
column in
df
to defective_rate
using 1 - qualification_rate, or change the
qualification_rate_percent
column in df
to defective_rate_percent
column
using 100 - qualification_rate_percent.
1 | change_to_defective(data, use_percent = TRUE, digits = 2)
|
data |
data frame with |
use_percent |
logical, default TRUE. Whether to use "percent" suffix. |
digits |
numeric, default 2. The number of dicimal reserved when using minus to change to defective. |
a data frame with fractration_rate(_percent)
column.
1 2 3 | df <- data.frame(qualification_rate = runif(3, 0, 1), qualification_rate_percent = runif(3, 0, 100))
change_to_defective(df, use_percent = FALSE)
change_to_defective(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.