Skip to contents

Format class of an object

Usage

fmt_class(x, open = "<", close = ">")

class_fmt(x, ignore = NULL, open = "<", close = ">")

Arguments

x

any R object

open, close

opening and closing bracket to use for formatting

ignore

subclasses to ignore

Examples

x <- iris
class(x) <- c("flowers", "data.frame")
class_fmt(x)
#> [1] "<flowers/data.frame>"
fmt_class(class(x))
#> [1] "<flowers/data.frame>"