Learn R Programming

lares (version 4.8.4)

check_attr: Attribute checker

Description

This function checks if an object has a specific attribute and stops if not

Usage

check_attr(object, attr = "type", check = "h2o_automl", stop = TRUE)

Arguments

object

Object of any kind

attr

Character. Attribute to check

check

Character. Attribute value

stop

Boolean. Stop if doesn't check?