add_class: Add class

add_classR Documentation

Add class

Description

This function adds a given class to an object, so that different S3 methods can be called (e.g., 'tidy.exp' to get OR for logistic regression models (e.g., in 'modelsummary::msummary')

Usage

add_class(x, class_to_add = "exp")

Arguments

x

An object

class_to_add

String of the class to add, defaults to "exp"


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.