Learn R Programming

EnTraineR (version 1.0.0)

trainer_core_conf_label: Confidence level label helper

Description

Returns a short label for a confidence level, e.g. "95 If conf_level is NA or NULL, returns fallback.

Usage

trainer_core_conf_label(conf_level, fallback = "the reported")

Value

A character scalar such as "95%" or the fallback string.

Arguments

conf_level

Numeric in (0,1), or NA/NULL.

fallback

Character string to use when conf_level is missing. Default is "the reported".

Examples

Run this code
trainer_core_conf_label(0.95)
trainer_core_conf_label(NA)
trainer_core_conf_label(NULL, fallback = "not reported")

Run the code above in your browser using DataLab