as_class function

Set Class

Set Class

Utility function to set an objects class.

as_class(x, cls)

Arguments

  • x: object to set the class of.
  • cls: the class to be set.