add_class: Add A New Class

View source: R/add_class.R

add_classR Documentation

Add A New Class

Description

Add A New Class

Usage

add_class(x, define_class)

Arguments

x

An object.

define_class

A new self-defined class

Examples

a <- matrix(rnorm(1000), nrow = 100)
a <- add_class(a, 'my_matrix')

duohongrui/simutils documentation built on March 12, 2024, 8:40 p.m.