utils_class: Utilities for handling with classes

Description Usage Arguments Details Value Author(s) Examples

Description

Utilities for handling with classes

Usage

1
2
3
4
5
6
7

Arguments

x

An object

class

The class to add or remove

Details

Value

The object x with the class added or removed.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
5
6
7
8
library(metan)
df <-
data_ge2 %>%
add_class("my_class")
class(df)
has_class(df, "my_class")
remove_class(df, "my_class") %>% class()
set_class(df, "data_frame") %>% class()

metan documentation built on Nov. 10, 2021, 9:11 a.m.