makeS3Obj {BBmisc} | R Documentation |
Simple wrapper for as.list
and setClasses
.
makeS3Obj(classes, ...)
classes |
[ |
... |
[any] |
Object.
makeS3Obj("car", speed=100, color="red")
## $speed
## [1] 100
##
## $color
## [1] "red"
##
## attr(,"class")
## [1] "car"