check_stvar: Checks whether the given object has class attribute 'stvar'

View source: R/argumentChecks.R

check_stvarR Documentation

Checks whether the given object has class attribute 'stvar'

Description

check_stvar checks that the object has class attribute 'stvar'.

Usage

check_stvar(object, object_name)

Arguments

object

S3 object to be tested

object_name

what is the name of the object that should of class 'stvar'?

Value

Throws an error if the object doesn't have the class attribute 'stvar'.


sstvars documentation built on April 11, 2025, 5:47 p.m.