R: Simple constructor for S3 objects based on lists.

makeS3Obj {BBmisc} | R 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")

[Package BBmisc version 1.11 Index]