fmt_class: Format class of an object

View source: R/utils-sfmisc.R

fmt_classR Documentation

Format class of an object

Description

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)
fmt_class(class(x))

s-fleck/sfmisc documentation built on Nov. 21, 2023, 12:29 a.m.