truth_event_level: Get the correct event level

View source: R/utils.R

truth_event_levelR Documentation

Get the correct event level

Description

Get the correct event level

Usage

truth_event_level(truth, event_level)

Arguments

truth

A factor of the truth data

event_level

The level of the factor that contains the event (the class of interest)

Value

String

Examples

x <- factor(c('TRUE', 'FALSE', 'TRUE', 'TRUE'))
truth_event_level(x, 'first')

zamanianlab/ZamanianLabVSTools documentation built on April 16, 2022, 12:53 a.m.