switch_class: switch the first class attribute

Description Usage Arguments

Description

switch_class replaces the first element of an object's class vector with the specified class. The object retains all other class memberships.

Usage

1
  switch_class(x, new.class)

Arguments

x

an object to be given a new class

new.class

a character string


garrettgman/modelglyphs documentation built on May 16, 2019, 5:39 p.m.