prependClass: Prepend a class attribute to existing class attribute

View source: R/prependClass.R

prependClassR Documentation

Prepend a class attribute to existing class attribute

Description

Prepend a class attribute to existing class attribute

Usage

prependClass(x, className)

Arguments

x

An object

className

Class name to prepend to existing class attribute of x

Value

Returns x with updated class attribute

Examples

prependClass(mtcars, "Foo") |> class()

pteetor/tutils documentation built on March 29, 2025, 6:38 p.m.