check_stvar function

Checks whether the given object has class attribute 'stvar'

Checks whether the given object has class attribute 'stvar'

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

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'?

Returns

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

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27