makeS3Obj: Simple constructor for S3 objects based on lists.

View source: R/makeS3Obj.R

makeS3ObjR Documentation

Simple constructor for S3 objects based on lists.

Description

Simple wrapper for as.list and setClasses.

Usage

makeS3Obj(classes, ...)

Arguments

classes

[character]
Class(es) for constructed object.

...

[any]
Key-value pairs for class members.

Value

Object.

Examples

makeS3Obj("car", speed = 100, color = "red")

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to makeS3Obj in BBmisc...